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


Performing analysis on: 4FGL_J1418.4+3543_daily_bin1519
RA = 214.623, Dec = 35.7192
tmin = 633052801, tmax = 633312001
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='323523', job_status='RUN', time_executed='2021-09-09 08:27:45.157148', time_epoch_executed='1631201265.16' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='1519'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/323523

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/323523/ft1_4FGL_J1418.4+3543_daily_bin1519.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/323523/ft2_4FGL_J1418.4+3543_daily_bin1519.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/323523/ft1_4FGL_J1418.4+3543_daily_bin1519.fits outfile=/scratch/kocevski/323523/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1519.fits ra=214.623 dec=35.7192 rad=12.0 tmin=633052801.0 tmax=633312001.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.60
user 3.37
sys 0.20

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/323523/ft1_filtered_4FGL_J1418.4+3543_daily_bin1519.fits evtable="EVENTS" scfile=/scratch/kocevski/323523/ft2_4FGL_J1418.4+3543_daily_bin1519.fits sctable="SC_DATA" expcube=/scratch/kocevski/323523/ltcube_633052801_633312001_4FGL_J1418.4+3543_daily_bin1519.fits outfile=/scratch/kocevski/323523/expmap_633052801_633312001_4FGL_J1418.4+3543_daily_bin1519.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/323523/ltcube_633052801_633312001_4FGL_J1418.4+3543_daily_bin1519.fits
.....................!
real 191.14
user 185.99
sys 4.68

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/323523/ft1_filtered_4FGL_J1418.4+3543_daily_bin1519.fits scfile=/scratch/kocevski/323523/ft2_4FGL_J1418.4+3543_daily_bin1519.fits outfile=/scratch/kocevski/323523/cmap_633052801_633312001_4FGL_J1418.4+3543_daily_bin1519.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/323523/ft1_filtered_4FGL_J1418.4+3543_daily_bin1519.fits scfile=/scratch/kocevski/323523/ft2_4FGL_J1418.4+3543_daily_bin1519.fits outfile=/scratch/kocevski/323523/cmap_HighResolution_633052801_633312001_4FGL_J1418.4+3543_daily_bin1519.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/323523/ft1_filtered_4FGL_J1418.4+3543_daily_bin1519.fits evtable="EVENTS" scfile=/scratch/kocevski/323523/ft2_4FGL_J1418.4+3543_daily_bin1519.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/323523/Model_4FGL_J1418.4+3543_daily_bin1519.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/323523/ft1_filtered_4FGL_J1418.4+3543_daily_bin1519.fits.....................!
real 48.30
user 46.87
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    104.06       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.9197       1.0000         .10000E-03   10000.    
     3 'Prefactor '    69.848       1.0000         .10000E-03   10000.    
     4 'norm      '    3.5877       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.3759       1.0000         .10000E-03   10000.    
     6 'norm      '    4.2770       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.2947       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .62446E-01   1.0000         .10000E-03   10000.    
     9 'norm      '    1.1893       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.311       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12150E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.6956       1.0000         .10000E-03   10000.    
    13 'norm      '    10.126       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    61.155       1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.922       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.086       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.2061       1.0000         .10000E-03   10000.    
    21 'norm      '    2.5238       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .69358       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1149       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5780E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6367.071     FROM MIGRAD    STATUS=CONVERGED     83 CALLS     2324 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     104.06        1.0085       -.43095E-07    .18801E-02
   2  Prefactor     3.9140        1.0883       -.40228E-06    .34706E-03
   3  Prefactor     69.853        1.0337        .10081E-07   -.35776E-03
   4  norm          3.5882        1.6529        .30968E-07    .59364E-04
   5  Prefactor     4.3756        4.0062       -.45503E-05   -.36188E-02
   6  norm          4.2777        1.6520        .19616E-05   -.27946E-02
   7  Prefactor     9.2930        1.5462        .13208E-05   -.39635E-02
   8  Prefactor     .10013E-03    218.28        .38527E-05** at limit **
   9  norm          1.1870        3.5565       -.37668E-05   -.40578E-03
  10  Prefactor     11.308        2.0841        .18293E-05   -.66063E-02
  11  Prefactor     .10000E-03    19.005        .15033E-05** at limit **
  12  Prefactor     8.6969        3.7567        .30676E-05    .39026E-02
  13  norm          10.126        2.0511        .19053E-05   -.63495E-02
  14  Prefactor     .10000E-03    4.8750        .52574E-06** at limit **
  15  norm          .10000E-03    2.9047       -.10554E-06** at limit **
  16  Prefactor     61.159        1.0297        .47598E-08   -.19620E-03
  17  Prefactor     23.922        1.0184       -.58685E-07    .79693E-03
  18  norm          .10000E-03    2.2638        .73095E-07** at limit **
  19  Prefactor     20.087        1.4667        .60970E-06   -.54070E-02
  20  Prefactor     8.2057        5.7958       -.24494E-05   -.33004E-02
  21  norm          2.5236        1.4919        .13062E-06   -.21876E-03
  22  Prefactor     .10004E-03    52.233       -.43095E-07** at limit **
  23  Normalizat    .69318        .18199        .11334E-05   -.22268E-03
  24  Prefactor     1.1154        .21085       -.44523E-07   -.29553E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 104.056
  Prefactor  = 3.91396
  Prefactor  = 69.853
  norm       = 3.58816
  Prefactor  = 4.37561
  norm       = 4.27773
  Prefactor  = 9.29299
  Prefactor  = 0.000100127
  norm       = 1.18698
  Prefactor  = 11.3082
  Prefactor  = 0.0001
  Prefactor  = 8.69685
  norm       = 10.1257
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 61.1586
  Prefactor  = 23.9219
  norm       = 0.0001
  Prefactor  = 20.0866
  Prefactor  = 8.20573
  norm       = 2.52356
  Prefactor  = 0.000100041
  Normalizat = 0.693179
  Prefactor  = 1.1154
 **********
 **   18 **HESSE 
 **********

 FCN=   6367.071     FROM HESSE     STATUS=OK           459 CALLS     2783 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     104.06        80.624        .98547E-03   -1.3664    
   2  Prefactor     3.9140        15.234        .50943E-02   -1.5312    
   3  Prefactor     69.853        85.007        .12008E-02   -1.4034    
   4  norm          3.5882        1.6599        .53336E-02   -1.5329    
   5  Prefactor     4.3756        4.1602        .48135E-02   -1.5290    
   6  norm          4.2777        13.555        .48703E-02   -1.5294    
   7  Prefactor     9.2930        13.221        .32864E-02   -1.5098    
   8  Prefactor     .10013E-03    14.492        .93306E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.1870        3.6493        .10447E-01   -1.5490    
  10  Prefactor     11.308        13.100        .29780E-02   -1.5035    
  11  Prefactor     .10000E-03    18.856        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.6969        3.7932        .33983E-02   -1.5118    
  13  norm          10.126        11.819        .31479E-02   -1.5071    
  14  Prefactor     .10000E-03    4.8780        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.8793        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     61.159        35.699        .12827E-02   -1.4142    
  17  Prefactor     23.922        23.992        .20475E-02   -1.4729    
  18  norm          .10000E-03    2.2637        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     20.087        14.161        .22342E-02   -1.4811    
  20  Prefactor     8.2057        5.9494        .34988E-02   -1.5135    
  21  norm          2.5236        1.5051        .64285E-02   -1.5390    
  22  Prefactor     .10004E-03    52.518        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .69318        .17366        .42205E-01   -1.0416    
  24  Prefactor     1.1154        .18189        .55421E-01   -.88976    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95102e-07
Minuit parameter uncertainties:
  1  80.7087
  2  15.2492
  3  85.1551
  4  1.65996
  5  4.16044
  6  13.5644
  7  13.2254
  8  0.00271641
  9  3.65
  10  13.1035
  11  9.58995e-05
  12  3.79326
  13  11.8218
  14  3.60232e-05
  15  4.86407e-07
  16  35.7111
  17  24.0017
  18  7.52345e-06
  19  14.1636
  20  5.9498
  21  1.50514
  22  0.00294234
  23  0.173799
  24  0.181988
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.187e+00  3.650e+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.820e-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.932e-01  1.738e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/323523/likelihoodResults_633052801_633312001_4FGL_J1418.4+3543_daily_bin1519.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) = 6367.00392482
delta logL = 0.0670879486188

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6367.00284607
delta logL = 0.0681666985602

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2987       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4767       1.0000          .0000       5.0000    
     3 'Normalizat'    .68617       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1188       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=   6367.003     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      205 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3014        108.71        .96975E-02    .10013E-02
   2  alpha         2.4756        2.5394        .41154        .24476E-04
   3  Normalizat    .68662        .37373E-01    .42106E-01    .39689E-04
   4  Prefactor     1.1183        .44674E-01    .55348E-01   -.78304E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.30137
  alpha      = 2.47559
  Normalizat = 0.686622
  Prefactor  = 1.11832
 **********
 **   18 **HESSE 
 **********

 FCN=   6367.003     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3014        3.3126        .18217E-03   -1.5480    
   2  alpha         2.4756        1.3196        .26952E-01   -.97656E-02
   3  Normalizat    .68662        .18028        .26098E-03   -1.0442    
   4  Prefactor     1.1183        .21103        .24473E-03   -.88883    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.1652e-09
Minuit parameter uncertainties:
  1  3.31304
  2  1.39017
  3  0.180431
  4  0.211183
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/323523': 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) = 6367.00284235
delta logL = 0.068170413575

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.301e+00  3.313e+00  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  2.476e+00  1.390e+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.118e+00  2.112e-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.866e-01  1.804e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
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/323523/cmap_HighResolution_633052801_633312001_4FGL_J1418.4+3543_daily_bin1519.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.49e-05', job_status='DONE', photon_flux_upper_limit='6.14e-08', time_completed='2021-09-09 08:38:59.144522', job_id='323523', GAL2='1.12', fit_tolerance='1e-08', EG2='0.69', EG='0.69', time_epoch_completed='1631201939.14', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='6.82e-02', ts2='0.28', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='1519' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:38:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 323523: <4FGL_J1418.4+3543_daily_bin1519> in cluster <slac> Done

Job <4FGL_J1418.4+3543_daily_bin1519> 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) <bullet0106>, 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:38:59 2021
Results reported at Thu Sep  9 08:38:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin1519 214.623 35.7192 633052801 633312001 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 :                                   658.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            815 sec.

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

