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


Performing analysis on: 4FGL_J1418.4+3543_daily_bin1514
RA = 214.623, Dec = 35.7192
tmin = 631756801, tmax = 632016001
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='323516', job_status='RUN', time_executed='2021-09-09 08:27:44.042130', time_epoch_executed='1631201264.04' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='1514'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/323516

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/323516/ft1_4FGL_J1418.4+3543_daily_bin1514.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/323516/ft2_4FGL_J1418.4+3543_daily_bin1514.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/323516/ft1_4FGL_J1418.4+3543_daily_bin1514.fits outfile=/scratch/kocevski/323516/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1514.fits ra=214.623 dec=35.7192 rad=12.0 tmin=631756801.0 tmax=632016001.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 2.39
user 2.20
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/323516/ft2_4FGL_J1418.4+3543_daily_bin1514.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/323516/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1514.fits evtable="EVENTS" outfile="/scratch/kocevski/323516/ft1_filtered_4FGL_J1418.4+3543_daily_bin1514.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.33
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/323516/ft1_filtered_4FGL_J1418.4+3543_daily_bin1514.fits evtable="EVENTS" scfile=/scratch/kocevski/323516/ft2_4FGL_J1418.4+3543_daily_bin1514.fits sctable="SC_DATA" expcube=/scratch/kocevski/323516/ltcube_631756801_632016001_4FGL_J1418.4+3543_daily_bin1514.fits outfile=/scratch/kocevski/323516/expmap_631756801_632016001_4FGL_J1418.4+3543_daily_bin1514.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/323516/ltcube_631756801_632016001_4FGL_J1418.4+3543_daily_bin1514.fits
.....................!
real 192.15
user 187.54
sys 4.21

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/323516/ft1_filtered_4FGL_J1418.4+3543_daily_bin1514.fits scfile=/scratch/kocevski/323516/ft2_4FGL_J1418.4+3543_daily_bin1514.fits outfile=/scratch/kocevski/323516/cmap_631756801_632016001_4FGL_J1418.4+3543_daily_bin1514.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.49
user 0.37
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/323516/ft1_filtered_4FGL_J1418.4+3543_daily_bin1514.fits scfile=/scratch/kocevski/323516/ft2_4FGL_J1418.4+3543_daily_bin1514.fits outfile=/scratch/kocevski/323516/cmap_HighResolution_631756801_632016001_4FGL_J1418.4+3543_daily_bin1514.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.524       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10595E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .19313E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.1641       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.6179       1.0000         .10000E-03   10000.    
     6 'norm      '    .11240E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.027       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.8594       1.0000         .10000E-03   10000.    
     9 'norm      '    4.8602       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    8.6182       1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.423       1.0000         .10000E-03   10000.    
    15 'norm      '    4.3672       1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.104       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10595E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .22402E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.6873       1.0000         .10000E-03   10000.    
    21 'norm      '    5.2572       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .15054E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .80505       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1146       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=   7462.379     FROM MIGRAD    STATUS=CONVERGED    573 CALLS     2390 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.338        47.619        .72133E-05    .37387E-04
   2  Prefactor     .10000E-03    14.562       -.41189E-07** at limit **
   3  Prefactor     .10000E-03    36.179       -.16441E-06** at limit **
   4  norm          2.1640        1.2724        .30899E-07    .31605E-04
   5  Prefactor     2.6186        2.9905        .59061E-07    .85355E-06
   6  norm          .10000E-03    12.310       -.20817E-06** at limit **
   7  Prefactor     10.031        12.385        .33924E-06    .13142E-04
   8  Prefactor     4.8647        16.159       -.12972E-05   -.25485E-04
   9  norm          4.8607        3.7580        .38171E-07   -.20429E-04
  10  Prefactor     .10000E-03    6.8658       -.40930E-07** at limit **
  11  Prefactor     .10000E-03    12.101        .15489E-06** at limit **
  12  Prefactor     .10000E-03    1.1811        .14150E-07** at limit **
  13  norm          8.6135        12.878        .74282E-07   -.75175E-05
  14  Prefactor     27.464        20.771        .49462E-06    .11976E-04
  15  norm          4.3690        5.3336        .17781E-07   -.77522E-04
  16  Prefactor     14.111        17.743       -.74483E-06   -.34042E-04
  17  Prefactor     .10000E-03    6.5586        .13004E-07** at limit **
  18  norm          .10000E-03    2.9635        .40161E-07** at limit **
  19  Prefactor     .12427E-03    5.8301        .13892E-05** at limit **
  20  Prefactor     4.6907        8.2892        .24610E-05    .12613E-03
  21  norm          5.2582        1.9596       -.25213E-06   -.39132E-03
  22  Prefactor     .10000E-03    81.395        .33361E-06** at limit **
  23  Normalizat    .80477        .14501       -.31924E-06   -.12419E-03
  24  Prefactor     1.1150        .16210       -.20067E-06   -.10413E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.3375
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.16404
  Prefactor  = 2.61859
  norm       = 0.0001
  Prefactor  = 10.0313
  Prefactor  = 4.8647
  norm       = 4.86072
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.61351
  Prefactor  = 27.4642
  norm       = 4.369
  Prefactor  = 14.1105
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000124272
  Prefactor  = 4.69072
  norm       = 5.25824
  Prefactor  = 0.0001
  Normalizat = 0.804766
  Prefactor  = 1.11499
 **********
 **   18 **HESSE 
 **********

 FCN=   7462.379     FROM HESSE     STATUS=OK           409 CALLS     2799 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.338        47.645        .10166E-03   -1.4925    
   2  Prefactor     .10000E-03    14.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    36.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.1640        1.2686        .72292E-04   -1.5414    
   5  Prefactor     2.6186        2.9785        .15277E-03   -1.5384    
   6  norm          .10000E-03    12.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.031        12.377        .12654E-03   -1.5074    
   8  Prefactor     4.8647        16.228        .18248E-03   -1.5267    
   9  norm          4.8607        3.7528        .13963E-03   -1.5267    
  10  Prefactor     .10000E-03    6.8973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.1944        .91620E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.6135        12.854        .13655E-03   -1.5121    
  14  Prefactor     27.464        20.786        .76502E-04   -1.4659    
  15  norm          4.3690        5.3198        .19273E-03   -1.5290    
  16  Prefactor     14.111        17.742        .10665E-03   -1.4957    
  17  Prefactor     .10000E-03    6.5622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.9757        .14523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .12427E-03    6.2645        .67689E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.6907        8.3423        .92937E-03   -1.5275    
  21  norm          5.2582        1.9598        .62339E-04   -1.5249    
  22  Prefactor     .10000E-03    81.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .80477        .17103        .24367E-03   -.99892    
  24  Prefactor     1.1150        .19162        .24517E-03   -.88989    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.5991e-10
Minuit parameter uncertainties:
  1  47.7635
  2  1.07506e-05
  3  2.11065e-05
  4  1.26857
  5  2.97866
  6  1.24103e-07
  7  12.3804
  8  16.2425
  9  3.75299
  10  4.75464e-06
  11  2.05794e-07
  12  8.24521e-07
  13  12.8577
  14  20.7914
  15  5.32036
  16  17.7481
  17  6.58381e-07
  18  1.70913e-08
  19  0.0246648
  20  8.34436
  21  1.95986
  22  2.80609e-05
  23  0.171147
  24  0.191739
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  4.861e+00  3.753e+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.115e+00  1.917e-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.048e-01  1.711e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.61
Ra Dec: 214.623 35.719
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 2.95e-08 +/- 2.28e-08
Energy Flux (Fixed Index): 1.68e-05 +/- 1.30e-05

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

Saving results to:
/scratch/kocevski/323516/likelihoodResults_631756801_632016001_4FGL_J1418.4+3543_daily_bin1514.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) = 7460.9533649
delta logL = 1.42594946416

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7460.93579131
delta logL = 1.4435230585

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9622       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3821       1.0000          .0000       5.0000    
     3 'Normalizat'    .72111       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1789       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=   7460.936     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      243 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9606        14.138        .74028E-02    .70571E-03
   2  alpha         3.3827        3.9886        .25679        .86915E-04
   3  Normalizat    .72109        .49307E-01    .42572E-01    .14005E-04
   4  Prefactor     1.1789        .54537E-01    .54111E-01   -.16097E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.96058
  alpha      = 3.38268
  Normalizat = 0.721089
  Prefactor  = 1.17887
 **********
 **   18 **HESSE 
 **********

 FCN=   7460.936     FROM HESSE     STATUS=OK            33 CALLS      276 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9606        5.4990        .57920E-04   -1.5428    
   2  alpha         3.3827        1.6606        .10405E-01    .36085    
   3  Normalizat    .72109        .17962        .25590E-03   -1.0307    
   4  Prefactor     1.1789        .20371        .23925E-03   -.86984    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17274e-10
Minuit parameter uncertainties:
  1  5.5004
  2  1.84655
  3  0.179769
  4  0.203843
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/323516': 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) = 7460.93579109
delta logL = 1.44352327446

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.961e+00  5.500e+00  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  3.383e+00  1.847e+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:  1.179e+00  2.038e-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:  7.211e-01  1.798e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.74
Ra Dec: 214.623 35.719
Photon Index (Free Index): 3.38 +/- 1.85
Photon Flux (Free Index): 8.66e-08 +/- 5.21e-08
Energy Flux (Free Index): 1.55e-05 +/- 9.05e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/323516/cmap_HighResolution_631756801_632016001_4FGL_J1418.4+3543_daily_bin1514.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.47e-05', comment='SUCCESS', photon_flux='2.95e-08', energy_flux2='1.55e-05', photon_flux_error='2.28e-08', dlogl='1.44e+00', energy_flux='1.68e-05', photon_flux2='8.66e-08', job_status='DONE', time_completed='2021-09-09 08:39:57.667817', photon_index_error2='1.85', photon_index2='3.38', ts='2.61', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='7.85e-08', energy_flux_error2='9.05e-06', EG='0.80', time_epoch_completed='1631201997.67', return_code='0', job_id='323516', GAL2='1.18', EG2='0.72', return_code2='0', energy_flux_error='1.30e-05', photon_flux_error2='5.21e-08', ts2='5.74', photon_index='2.02' WHERE bin_id='1514' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:39:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 323516: <4FGL_J1418.4+3543_daily_bin1514> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin1514 214.623 35.7192 631756801 632016001 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 :                                   722.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             296.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   871 sec.
    Turnaround time :                            874 sec.

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

