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


Performing analysis on: 4FGL_J1418.4+3543_daily_bin1437
RA = 214.623, Dec = 35.7192
tmin = 611798401, tmax = 612057601
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='322246', job_status='RUN', time_executed='2021-09-09 08:24:47.396593', time_epoch_executed='1631201087.4' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='1437'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/322246

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/322246/ft1_4FGL_J1418.4+3543_daily_bin1437.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/322246/ft2_4FGL_J1418.4+3543_daily_bin1437.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/322246/ft1_4FGL_J1418.4+3543_daily_bin1437.fits outfile=/scratch/kocevski/322246/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1437.fits ra=214.623 dec=35.7192 rad=12.0 tmin=611798401.0 tmax=612057601.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.48
user 3.26
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/322246/ft2_4FGL_J1418.4+3543_daily_bin1437.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/322246/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1437.fits evtable="EVENTS" outfile="/scratch/kocevski/322246/ft1_filtered_4FGL_J1418.4+3543_daily_bin1437.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/322246/ft1_filtered_4FGL_J1418.4+3543_daily_bin1437.fits" evtable="EVENTS" scfile=/scratch/kocevski/322246/ft2_4FGL_J1418.4+3543_daily_bin1437.fits sctable="SC_DATA" outfile=/scratch/kocevski/322246/ltcube_611798401_612057601_4FGL_J1418.4+3543_daily_bin1437.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/322246/ft2_4FGL_J1418.4+3543_daily_bin1437.fits
.....................!
real 11.74
user 11.35
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/322246/ft1_filtered_4FGL_J1418.4+3543_daily_bin1437.fits evtable="EVENTS" scfile=/scratch/kocevski/322246/ft2_4FGL_J1418.4+3543_daily_bin1437.fits sctable="SC_DATA" expcube=/scratch/kocevski/322246/ltcube_611798401_612057601_4FGL_J1418.4+3543_daily_bin1437.fits outfile=/scratch/kocevski/322246/expmap_611798401_612057601_4FGL_J1418.4+3543_daily_bin1437.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/322246/ltcube_611798401_612057601_4FGL_J1418.4+3543_daily_bin1437.fits
.....................!
real 197.39
user 192.63
sys 4.29

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/322246/ft1_filtered_4FGL_J1418.4+3543_daily_bin1437.fits scfile=/scratch/kocevski/322246/ft2_4FGL_J1418.4+3543_daily_bin1437.fits outfile=/scratch/kocevski/322246/cmap_611798401_612057601_4FGL_J1418.4+3543_daily_bin1437.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/322246/ft1_filtered_4FGL_J1418.4+3543_daily_bin1437.fits scfile=/scratch/kocevski/322246/ft2_4FGL_J1418.4+3543_daily_bin1437.fits outfile=/scratch/kocevski/322246/cmap_HighResolution_611798401_612057601_4FGL_J1418.4+3543_daily_bin1437.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/322246/ft1_filtered_4FGL_J1418.4+3543_daily_bin1437.fits evtable="EVENTS" scfile=/scratch/kocevski/322246/ft2_4FGL_J1418.4+3543_daily_bin1437.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/322246/Model_4FGL_J1418.4+3543_daily_bin1437.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/322246/ft1_filtered_4FGL_J1418.4+3543_daily_bin1437.fits.....................!
real 42.50
user 41.20
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.512       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    7.8317       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.8243       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.7462       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.8074       1.0000         .10000E-03   10000.    
    13 'norm      '    20.555       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    7.2667       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    35.221       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.959       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.6819       1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .88035       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .82736       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=   5106.768     FROM MIGRAD    STATUS=CONVERGED    532 CALLS     2673 TOTAL
                     EDM=   .75E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.428        44.427        .93454E-05    .32985E-05
   2  Prefactor     .10000E-03    12.689       -.21638E-06** at limit **
   3  Prefactor     .10000E-03    42.024       -.20115E-05** at limit **
   4  norm          7.8316        2.0746        .11762E-07   -.15400E-05
   5  Prefactor     1.8241        2.1815        .17717E-07   -.63522E-05
   6  norm          .10000E-03    3.3718        .45083E-08** at limit **
   7  Prefactor     .10000E-03    5.6483        .83597E-07** at limit **
   8  Prefactor     .10000E-03    6.4062       -.47129E-07** at limit **
   9  norm          1.7465        3.5782        .10454E-05   -.31832E-04
  10  Prefactor     .10000E-03    8.8528        .37816E-06** at limit **
  11  Prefactor     .10000E-03    12.472       -.26277E-07** at limit **
  12  Prefactor     9.8071        4.1023        .64873E-07   -.26783E-06
  13  norm          20.555        14.993       -.13392E-07   -.65761E-05
  14  Prefactor     .10000E-03    13.124        .53245E-07** at limit **
  15  norm          7.2664        6.1062        .34249E-07   -.71579E-05
  16  Prefactor     .10000E-03    19.635        .61691E-06** at limit **
  17  Prefactor     35.215        34.407        .45806E-06   -.50481E-06
  18  norm          .10000E-03    2.6090        .11105E-07** at limit **
  19  Prefactor     14.959        12.884        .26811E-07   -.36979E-05
  20  Prefactor     1.6823        5.9885        .23075E-06   -.38939E-05
  21  norm          .10000E-03    .48909        .15897E-07** at limit **
  22  Prefactor     .10000E-03    49.758        .12951E-05** at limit **
  23  Normalizat    .88046        .16023        .89361E-07   -.49946E-05
  24  Prefactor     .82727        .18217       -.71233E-06    .42390E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.4278
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.83163
  Prefactor  = 1.82413
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.74654
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.80707
  norm       = 20.5552
  Prefactor  = 0.0001
  norm       = 7.26636
  Prefactor  = 0.0001
  Prefactor  = 35.2146
  norm       = 0.0001
  Prefactor  = 14.9588
  Prefactor  = 1.68229
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.880457
  Prefactor  = 0.82727
 **********
 **   18 **HESSE 
 **********

 FCN=   5106.768     FROM HESSE     STATUS=OK           395 CALLS     3068 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.428        44.473        .10514E-03   -1.4948    
   2  Prefactor     .10000E-03    12.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    42.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          7.8316        2.0765        .51231E-04   -1.5148    
   5  Prefactor     1.8241        2.1693        .11195E-03   -1.5438    
   6  norm          .10000E-03    3.3742        .12815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.6512        .16587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.4151        .17665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.7465        3.5857        .93022E-03   -1.5444    
  10  Prefactor     .10000E-03    8.9044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.8071        4.1054        .89404E-04   -1.5082    
  13  norm          20.555        14.984        .88345E-04   -1.4801    
  14  Prefactor     .10000E-03    13.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.2664        6.1083        .14880E-03   -1.5169    
  16  Prefactor     .10000E-03    19.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     35.215        34.416        .67526E-04   -1.4520    
  18  norm          .10000E-03    2.6094        .11273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.959        12.857        .10356E-03   -1.4934    
  20  Prefactor     1.6823        5.9397        .31175E-03   -1.5449    
  21  norm          .10000E-03    .49428        .48673E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    49.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .88046        .18751        .21503E-03   -.97150    
  24  Prefactor     .82727        .21211        .25627E-03   -.98731    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11289e-10
Minuit parameter uncertainties:
  1  44.5759
  2  4.81929e-06
  3  2.5593e-05
  4  2.07653
  5  2.16941
  6  9.99752e-08
  7  1.14836e-07
  8  6.46256e-07
  9  3.58617
  10  1.32563e-06
  11  3.10612e-06
  12  4.10549
  13  14.9867
  14  1.77117e-06
  15  6.10879
  16  3.31347e-06
  17  34.4354
  18  1.10286e-07
  19  12.8595
  20  5.9418
  21  5.07078e-08
  22  1.10975e-05
  23  0.187651
  24  0.21232
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.747e+00  3.586e+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.273e-01  2.123e-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:  8.805e-01  1.877e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/322246/likelihoodResults_611798401_612057601_4FGL_J1418.4+3543_daily_bin1437.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) = 5106.36496571
delta logL = 0.403353084255

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5106.33756605
delta logL = 0.430752745321

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1841       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1392       1.0000          .0000       5.0000    
     3 'Normalizat'    .85010       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84747       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.

 FCN=   5106.338     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      203 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1842        23.553        .10489E-01    .96580E-03
   2  alpha         3.1393        4.0685        .42996        .33778E-04
   3  Normalizat    .85009        .36169E-01    .44261E-01    .99000E-05
   4  Prefactor     .84747        .41532E-01    .44332E-01    .11385E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.18417
  alpha      = 3.13931
  Normalizat = 0.850085
  Prefactor  = 0.847468
 **********
 **   18 **HESSE 
 **********

 FCN=   5106.338     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1842        3.6669        .80648E-04   -1.5490    
   2  alpha         3.1393        1.7798        .14835E-01    .25860    
   3  Normalizat    .85009        .18744        .21823E-03   -.98237    
   4  Prefactor     .84747        .21513        .25335E-03   -.98002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26648e-08
Minuit parameter uncertainties:
  1  3.66759
  2  2.00048
  3  0.187586
  4  0.215342
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/322246': 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) = 5106.33756604
delta logL = 0.430752763268

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.184e+00  3.668e+00  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  3.139e+00  2.000e+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:  8.475e-01  2.153e-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:  8.501e-01  1.876e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.21
Ra Dec: 214.623 35.719
Photon Index (Free Index): 3.14 +/- 2.00
Photon Flux (Free Index): 3.51e-08 +/- 3.94e-08
Energy Flux (Free Index): 6.87e-06 +/- 8.21e-06

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/322246/cmap_HighResolution_611798401_612057601_4FGL_J1418.4+3543_daily_bin1437.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.86e-05', comment='SUCCESS', energy_flux2='6.87e-06', dlogl='4.31e-01', photon_flux2='3.51e-08', job_status='DONE', time_completed='2021-09-09 08:36:38.441483', photon_index_error2='2.00', photon_index2='3.14', ts='0.32', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='6.78e-08', energy_flux_error2='8.21e-06', EG='0.88', time_epoch_completed='1631201798.44', return_code='0', job_id='322246', GAL2='0.85', EG2='0.85', return_code2='0', photon_flux_error2='3.94e-08', ts2='1.21', photon_index='2.02' WHERE bin_id='1437' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:36:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 322246: <4FGL_J1418.4+3543_daily_bin1437> in cluster <slac> Done

Job <4FGL_J1418.4+3543_daily_bin1437> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  9 08:21:04 2021
Job was executed on host(s) <bullet0103>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 08:21:06 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:21:06 2021
Terminated at Thu Sep  9 08:36:39 2021
Results reported at Thu Sep  9 08:36:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin1437 214.623 35.7192 611798401 612057601 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 :                                   615.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            935 sec.

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

