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


Performing analysis on: 4FGL_J1418.4+3543_daily_bin1032
RA = 214.623, Dec = 35.7192
tmin = 506822401, tmax = 507081601
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='320534', job_status='RUN', time_executed='2021-09-09 08:19:04.200097', time_epoch_executed='1631200744.2' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='1032'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/320534

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/320534/ft1_4FGL_J1418.4+3543_daily_bin1032.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/320534/ft2_4FGL_J1418.4+3543_daily_bin1032.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/320534/ft1_4FGL_J1418.4+3543_daily_bin1032.fits outfile=/scratch/kocevski/320534/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1032.fits ra=214.623 dec=35.7192 rad=12.0 tmin=506822401.0 tmax=507081601.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.49
user 3.28
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/320534/ft1_filtered_4FGL_J1418.4+3543_daily_bin1032.fits" evtable="EVENTS" scfile=/scratch/kocevski/320534/ft2_4FGL_J1418.4+3543_daily_bin1032.fits sctable="SC_DATA" outfile=/scratch/kocevski/320534/ltcube_506822401_507081601_4FGL_J1418.4+3543_daily_bin1032.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/320534/ft2_4FGL_J1418.4+3543_daily_bin1032.fits
.....................!
real 11.83
user 11.45
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/320534/ft1_filtered_4FGL_J1418.4+3543_daily_bin1032.fits evtable="EVENTS" scfile=/scratch/kocevski/320534/ft2_4FGL_J1418.4+3543_daily_bin1032.fits sctable="SC_DATA" expcube=/scratch/kocevski/320534/ltcube_506822401_507081601_4FGL_J1418.4+3543_daily_bin1032.fits outfile=/scratch/kocevski/320534/expmap_506822401_507081601_4FGL_J1418.4+3543_daily_bin1032.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/320534/ltcube_506822401_507081601_4FGL_J1418.4+3543_daily_bin1032.fits
.....................!
real 191.58
user 186.33
sys 4.90

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/320534/ft1_filtered_4FGL_J1418.4+3543_daily_bin1032.fits scfile=/scratch/kocevski/320534/ft2_4FGL_J1418.4+3543_daily_bin1032.fits outfile=/scratch/kocevski/320534/cmap_506822401_507081601_4FGL_J1418.4+3543_daily_bin1032.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/320534/ft1_filtered_4FGL_J1418.4+3543_daily_bin1032.fits scfile=/scratch/kocevski/320534/ft2_4FGL_J1418.4+3543_daily_bin1032.fits outfile=/scratch/kocevski/320534/cmap_HighResolution_506822401_507081601_4FGL_J1418.4+3543_daily_bin1032.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.965       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.8073       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.8989       1.0000         .10000E-03   10000.    
     4 'norm      '    11.234       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.5202       1.0000         .10000E-03   10000.    
     6 'norm      '    32.944       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.7116       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13990E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.346       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10552E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.3511       1.0000         .10000E-03   10000.    
    13 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.6035       1.0000         .10000E-03   10000.    
    15 'norm      '    .10318E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13018E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.030       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.8885       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10125E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .62246       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3203       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=   5820.551     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     2740 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.970        39.264       -.24091E-05   -.15449E-05
   2  Prefactor     5.8071        14.489       -.32258E-05   -.51285E-04
   3  Prefactor     6.0433        91.248        .20783E-04   -.40262E-05
   4  norm          11.234        2.4874       -.94582E-07    .64514E-04
   5  Prefactor     1.5193        2.9479       -.76647E-06   -.77827E-03
   6  norm          32.939        21.915       -.14262E-05    .27801E-05
   7  Prefactor     8.7146        16.895        .16758E-05   -.21206E-04
   8  Prefactor     .10000E-03    70.545       -.34188E-05** at limit **
   9  norm          .10000E-03    1.5694       -.61274E-07** at limit **
  10  Prefactor     12.343        11.497        .10620E-05    .19471E-04
  11  Prefactor     .10000E-03    14.592        .10332E-06** at limit **
  12  Prefactor     2.3505        2.8811       -.43135E-06   -.40957E-03
  13  norm          .10000E-03    7.1244       -.48344E-08** at limit **
  14  Prefactor     8.6318        23.292       -.30321E-04   -.27200E-04
  15  norm          .10000E-03    11.300        .12355E-06** at limit **
  16  Prefactor     .10011E-03    406.45        .91875E-05** at limit **
  17  Prefactor     18.035        28.244        .43489E-06    .28001E-05
  18  norm          .10000E-03    2.5766        .21695E-08** at limit **
  19  Prefactor     2.8869        6.6404       -.86361E-06   -.28199E-03
  20  Prefactor     .10000E-03    1.4379       -.23837E-07** at limit **
  21  norm          .10000E-03    .63443       -.89006E-07** at limit **
  22  Prefactor     .10000E-03    35.028        .41594E-07** at limit **
  23  Normalizat    .62239        .17291        .36076E-05   -.23351E-04
  24  Prefactor     1.3205        .19265       -.22408E-07    .14278E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.9703
  Prefactor  = 5.80715
  Prefactor  = 6.04334
  norm       = 11.2345
  Prefactor  = 1.51932
  norm       = 32.9385
  Prefactor  = 8.71457
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.3427
  Prefactor  = 0.0001
  Prefactor  = 2.35048
  norm       = 0.0001
  Prefactor  = 8.63179
  norm       = 0.0001
  Prefactor  = 0.000100112
  Prefactor  = 18.0355
  norm       = 0.0001
  Prefactor  = 2.88694
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.622394
  Prefactor  = 1.32048
 **********
 **   18 **HESSE 
 **********

 FCN=   5820.551     FROM HESSE     STATUS=OK           401 CALLS     3141 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.970        39.285        .89638E-04   -1.4814    
   2  Prefactor     5.8071        14.489        .16666E-03   -1.5226    
   3  Prefactor     6.0433        91.346        .16534E-03   -1.5216    
   4  norm          11.234        2.4887        .54340E-04   -1.5037    
   5  Prefactor     1.5193        2.9307        .17529E-03   -1.5461    
   6  norm          32.939        22.004        .69813E-04   -1.4559    
   7  Prefactor     8.7146        16.856        .13581E-03   -1.5117    
   8  Prefactor     .10000E-03    73.447        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.5868        .93297E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.343        11.475        .11401E-03   -1.5005    
  11  Prefactor     .10000E-03    14.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.3505        2.8710        .13711E-03   -1.5401    
  13  norm          .10000E-03    7.1353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.6318        23.367        .13666E-03   -1.5120    
  15  norm          .10000E-03    11.737        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10011E-03    421.37        .36352E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.035        28.271        .94325E-04   -1.4858    
  18  norm          .10000E-03    2.5784        .11960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.8869        6.6324        .23912E-03   -1.5368    
  20  Prefactor     .10000E-03    1.4386        .89336E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.0450        .11760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    35.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .62239        .20831        .26957E-03   -1.0704    
  24  Prefactor     1.3205        .23444        .23088E-03   -.82700    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.77077e-10
Minuit parameter uncertainties:
  1  39.3359
  2  14.4974
  3  47.0766
  4  2.48874
  5  2.93093
  6  22.0096
  7  16.8657
  8  0.00037083
  9  4.67013e-06
  10  11.4769
  11  4.72481e-05
  12  2.87115
  13  4.74959e-06
  14  23.3921
  15  5.53327e-05
  16  0.0138103
  17  28.2923
  18  3.33387e-07
  19  6.63404
  20  6.97727e-07
  21  5.14509e-06
  22  1.29303e-05
  23  0.208572
  24  0.234632
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.000e-04  4.670e-06  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.320e+00  2.346e-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:  6.224e-01  2.086e-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: 4.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.35e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/320534/likelihoodResults_506822401_507081601_4FGL_J1418.4+3543_daily_bin1032.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) = 5820.55428272
delta logL = -0.00296484681621

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5820.55131319
delta logL = 4.68351026939e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5755       1.0000          .0000       5.0000    
     3 'Normalizat'    .62237       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3205       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=   5820.551     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      249 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    20.943        .90712E-02** at limit **
   2  alpha         2.5752        3.5814        .41175        .35463E-06
   3  Normalizat    .62239        .13417E-01    .60933E-01    .35791E-04
   4  Prefactor     1.3205        .16232E-01    .52223E-01    .37379E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.5752
  Normalizat = 0.622395
  Prefactor  = 1.32048
 **********
 **   18 **HESSE 
 **********

 FCN=   5820.551     FROM HESSE     STATUS=OK            29 CALLS      278 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.9545        .19945E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5752        3.6974        .16470        .30086E-01
   3  Normalizat    .62239        .18992        .26956E-03   -1.0704    
   4  Prefactor     1.3205        .23016        .23088E-03   -.82700    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.23555e-10
Minuit parameter uncertainties:
  1  3.84789e-05
  2  168.472
  3  0.190118
  4  0.230334
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/320534': 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) = 5820.55131298
delta logL = 4.8939300541e-06

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.000e-04  3.848e-05  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  2.575e+00  1.685e+02  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.320e+00  2.303e-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:  6.224e-01  1.901e-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/320534/cmap_HighResolution_506822401_507081601_4FGL_J1418.4+3543_daily_bin1032.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.35e-05', job_status='DONE', photon_flux_upper_limit='4.13e-08', time_completed='2021-09-09 08:31:00.348870', job_id='320534', GAL2='1.32', fit_tolerance='1e-08', EG2='0.62', EG='0.62', time_epoch_completed='1631201460.35', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.32', dlogl='4.89e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='1032' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:31:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 320534: <4FGL_J1418.4+3543_daily_bin1032> in cluster <slac> Done

Job <4FGL_J1418.4+3543_daily_bin1032> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep  9 08:15:39 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 08:15:41 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:15:41 2021
Terminated at Thu Sep  9 08:31:01 2021
Results reported at Thu Sep  9 08:31:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin1032 214.623 35.7192 506822401 507081601 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 :                                   661.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             231.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            922 sec.

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

