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


Performing analysis on: 4FGL_J1418.4+3543_daily_bin1503
RA = 214.623, Dec = 35.7192
tmin = 628905601, tmax = 629164801
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='323500', job_status='RUN', time_executed='2021-09-09 08:28:02.652941', time_epoch_executed='1631201282.65' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='1503'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/323500

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/323500/ft1_4FGL_J1418.4+3543_daily_bin1503.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/323500/ft2_4FGL_J1418.4+3543_daily_bin1503.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/323500/ft1_4FGL_J1418.4+3543_daily_bin1503.fits outfile=/scratch/kocevski/323500/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1503.fits ra=214.623 dec=35.7192 rad=12.0 tmin=628905601.0 tmax=629164801.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.54
user 3.29
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/323500/ft2_4FGL_J1418.4+3543_daily_bin1503.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/323500/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1503.fits evtable="EVENTS" outfile="/scratch/kocevski/323500/ft1_filtered_4FGL_J1418.4+3543_daily_bin1503.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/323500/ft1_filtered_4FGL_J1418.4+3543_daily_bin1503.fits" evtable="EVENTS" scfile=/scratch/kocevski/323500/ft2_4FGL_J1418.4+3543_daily_bin1503.fits sctable="SC_DATA" outfile=/scratch/kocevski/323500/ltcube_628905601_629164801_4FGL_J1418.4+3543_daily_bin1503.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/323500/ft2_4FGL_J1418.4+3543_daily_bin1503.fits
.....................!
real 12.13
user 11.79
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/323500/ft1_filtered_4FGL_J1418.4+3543_daily_bin1503.fits evtable="EVENTS" scfile=/scratch/kocevski/323500/ft2_4FGL_J1418.4+3543_daily_bin1503.fits sctable="SC_DATA" expcube=/scratch/kocevski/323500/ltcube_628905601_629164801_4FGL_J1418.4+3543_daily_bin1503.fits outfile=/scratch/kocevski/323500/expmap_628905601_629164801_4FGL_J1418.4+3543_daily_bin1503.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/323500/ltcube_628905601_629164801_4FGL_J1418.4+3543_daily_bin1503.fits
.....................!
real 190.32
user 185.22
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/323500/ft1_filtered_4FGL_J1418.4+3543_daily_bin1503.fits scfile=/scratch/kocevski/323500/ft2_4FGL_J1418.4+3543_daily_bin1503.fits outfile=/scratch/kocevski/323500/cmap_628905601_629164801_4FGL_J1418.4+3543_daily_bin1503.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/323500/ft1_filtered_4FGL_J1418.4+3543_daily_bin1503.fits scfile=/scratch/kocevski/323500/ft2_4FGL_J1418.4+3543_daily_bin1503.fits outfile=/scratch/kocevski/323500/cmap_HighResolution_628905601_629164801_4FGL_J1418.4+3543_daily_bin1503.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.56
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.5602       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.082       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.289       1.0000         .10000E-03   10000.    
     9 'norm      '    5.2008       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .75833E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.4547       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.0957       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.6795       1.0000         .10000E-03   10000.    
    15 'norm      '    3.3622       1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.756       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.526       1.0000         .10000E-03   10000.    
    18 'norm      '    .33651       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .18689       1.0000         .10000E-03   10000.    
    22 'Prefactor '    91.570       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0147       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0513       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=   6493.825     FROM MIGRAD    STATUS=CONVERGED    534 CALLS     2706 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.259       -.24220E-06** at limit **
   2  Prefactor     .10000E-03    10.342       -.14997E-06** at limit **
   3  Prefactor     .10000E-03    25.786       -.26029E-06** at limit **
   4  norm          1.5601        1.2253        .23517E-07    .21363E-04
   5  Prefactor     .10000E-03    3.4388        .30973E-07** at limit **
   6  norm          .10000E-03    3.8596        .88921E-08** at limit **
   7  Prefactor     19.092        14.517        .54543E-07    .41467E-05
   8  Prefactor     17.301        17.655       -.63506E-06    .16179E-04
   9  norm          5.2037        4.2062        .10843E-08   -.89444E-05
  10  Prefactor     .10000E-03    28.964        .96452E-07** at limit **
  11  Prefactor     6.4921        12.409       -.18705E-06    .11734E-04
  12  Prefactor     5.0954        3.9473        .52229E-08    .46910E-05
  13  norm          .10000E-03    13.587        .57271E-06** at limit **
  14  Prefactor     9.6776        22.731        .45087E-06    .62881E-06
  15  norm          3.3628        4.7305        .13436E-05    .93194E-04
  16  Prefactor     25.735        27.520        .20118E-05   -.28311E-04
  17  Prefactor     12.523        21.721        .33720E-06   -.14597E-05
  18  norm          .34319        7.4206        .10188E-05   -.29721E-03
  19  Prefactor     .10000E-03    6.1280        .50902E-07** at limit **
  20  Prefactor     .10000E-03    2.0811        .36510E-07** at limit **
  21  norm          .18287        1.4034       -.90309E-07   -.36420E-03
  22  Prefactor     91.518        105.62        .64078E-05    .36041E-04
  23  Normalizat    1.0148        .16493        .78189E-07    .59813E-04
  24  Prefactor     1.0512        .18591       -.35345E-06    .49894E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.56012
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 19.092
  Prefactor  = 17.3008
  norm       = 5.20367
  Prefactor  = 0.0001
  Prefactor  = 6.4921
  Prefactor  = 5.09538
  norm       = 0.0001
  Prefactor  = 9.67757
  norm       = 3.36279
  Prefactor  = 25.7353
  Prefactor  = 12.5229
  norm       = 0.343194
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.182874
  Prefactor  = 91.5177
  Normalizat = 1.01485
  Prefactor  = 1.05125
 **********
 **   18 **HESSE 
 **********

 FCN=   6493.825     FROM HESSE     STATUS=OK           409 CALLS     3115 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    25.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.5601        1.2123        .76345E-04   -1.5458    
   5  Prefactor     .10000E-03    3.5500        .29144E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.8637        .15461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     19.092        14.502        .91687E-04   -1.4834    
   8  Prefactor     17.301        17.673        .96323E-04   -1.4876    
   9  norm          5.2037        4.1971        .14138E-03   -1.5252    
  10  Prefactor     .10000E-03    29.452        .41867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.4921        12.288        .15797E-03   -1.5198    
  12  Prefactor     5.0954        3.9490        .13274E-03   -1.5256    
  13  norm          .10000E-03    13.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.6776        22.753        .12880E-03   -1.5086    
  15  norm          3.3628        4.8052        .10137E-02   -1.5341    
  16  Prefactor     25.735        27.299        .78935E-04   -1.4693    
  17  Prefactor     12.523        21.716        .11318E-03   -1.5000    
  18  norm          .34319        47.368        .40562E-02   -1.5591    
  19  Prefactor     .10000E-03    6.1482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.0831        .11346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .18287        2.8534        .16296E-02   -1.5622    
  22  Prefactor     91.518        106.79        .20997E-03   -1.3792    
  23  Normalizat    1.0148        .19862        .22966E-03   -.92535    
  24  Prefactor     1.0512        .22415        .26451E-03   -.91040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.69038e-08
Minuit parameter uncertainties:
  1  4.60077e-06
  2  3.92496e-06
  3  8.1574e-06
  4  1.21233
  5  2.29043e-06
  6  6.48074e-07
  7  14.5049
  8  17.6785
  9  4.19729
  10  6.57671e-05
  11  12.2926
  12  3.94921
  13  1.14808e-05
  14  22.7733
  15  4.80572
  16  27.3125
  17  21.7301
  18  8.06917
  19  7.11461e-06
  20  1.85692e-06
  21  1.44442
  22  107.018
  23  0.198769
  24  0.224348
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  5.204e+00  4.197e+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:  1.051e+00  2.243e-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.015e+00  1.988e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.25
Ra Dec: 214.623 35.719
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 3.16e-08 +/- 2.55e-08
Energy Flux (Fixed Index): 1.80e-05 +/- 1.45e-05

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

Saving results to:
/scratch/kocevski/323500/likelihoodResults_628905601_629164801_4FGL_J1418.4+3543_daily_bin1503.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) = 6493.40692832
delta logL = 0.418304930635

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6493.40315411
delta logL = 0.422079138842

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5944       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5780       1.0000          .0000       5.0000    
     3 'Normalizat'    .98356       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0716       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=   6493.403     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      255 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5964        59.738        .46947E-02    .30463E-03
   2  alpha         2.5787        3.7793        .33660        .51728E-04
   3  Normalizat    .98343        .63184E-01    .45961E-01    .98193E-05
   4  Prefactor     1.0716        .64663E-01    .59277E-01    .81950E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.59643
  alpha      = 2.57872
  Normalizat = 0.983427
  Prefactor  = 1.07161
 **********
 **   18 **HESSE 
 **********

 FCN=   6493.403     FROM HESSE     STATUS=OK            33 CALLS      288 TOTAL
                     EDM=   .72E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5964        3.9607        .10774E-03   -1.5279    
   2  alpha         2.5787        .64063        .12001E-01    .31492E-01
   3  Normalizat    .98343        .19374        .23267E-03   -.93588    
   4  Prefactor     1.0716        .22386        .26214E-03   -.90379    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.24045e-12
Minuit parameter uncertainties:
  1  3.96088
  2  0.647863
  3  0.193874
  4  0.224059
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/323500': 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) = 6493.40315188
delta logL = 0.422081363501

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  4.596e+00  3.961e+00  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  2.579e+00  6.479e-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:  1.072e+00  2.241e-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:  9.834e-01  1.939e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.10
Ra Dec: 214.623 35.719
Photon Index (Free Index): 2.58 +/- 0.65
Photon Flux (Free Index): 5.76e-08 +/- 4.35e-08
Energy Flux (Free Index): 1.58e-05 +/- 1.08e-05

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/323500/cmap_HighResolution_628905601_629164801_4FGL_J1418.4+3543_daily_bin1503.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.07e-05', comment='SUCCESS', photon_flux='3.16e-08', energy_flux2='1.58e-05', photon_flux_error='2.55e-08', dlogl='4.22e-01', energy_flux='1.80e-05', photon_flux2='5.76e-08', job_status='DONE', time_completed='2021-09-09 08:39:45.572760', photon_index_error2='0.65', photon_index2='2.58', ts='3.25', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='8.91e-08', energy_flux_error2='1.08e-05', EG='1.01', time_epoch_completed='1631201985.57', return_code='0', job_id='323500', GAL2='1.07', EG2='0.98', return_code2='0', energy_flux_error='1.45e-05', photon_flux_error2='4.35e-08', ts2='4.10', photon_index='2.02' WHERE bin_id='1503' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:39:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 323500: <4FGL_J1418.4+3543_daily_bin1503> in cluster <slac> Done

Job <4FGL_J1418.4+3543_daily_bin1503> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Thu Sep  9 08:25:23 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 08:25:24 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:25:24 2021
Terminated at Thu Sep  9 08:39:46 2021
Results reported at Thu Sep  9 08:39:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin1503 214.623 35.7192 628905601 629164801 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 :                                   694.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             263.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   861 sec.
    Turnaround time :                            863 sec.

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

