/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 14 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 = 7479
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1418.4+3543_daily_bin616
RA = 214.623, Dec = 35.7192
tmin = 398995201, tmax = 399254401
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='318724', job_status='RUN', time_executed='2021-09-09 08:11:05.462949', time_epoch_executed='1631200265.46' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='616'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/318724

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/318724/ft1_4FGL_J1418.4+3543_daily_bin616.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/318724/ft2_4FGL_J1418.4+3543_daily_bin616.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/318724/ft1_4FGL_J1418.4+3543_daily_bin616.fits outfile=/scratch/kocevski/318724/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin616.fits ra=214.623 dec=35.7192 rad=12.0 tmin=398995201.0 tmax=399254401.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 5.43
user 5.16
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/318724/ft2_4FGL_J1418.4+3543_daily_bin616.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/318724/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin616.fits evtable="EVENTS" outfile="/scratch/kocevski/318724/ft1_filtered_4FGL_J1418.4+3543_daily_bin616.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.53
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/318724/ft1_filtered_4FGL_J1418.4+3543_daily_bin616.fits" evtable="EVENTS" scfile=/scratch/kocevski/318724/ft2_4FGL_J1418.4+3543_daily_bin616.fits sctable="SC_DATA" outfile=/scratch/kocevski/318724/ltcube_398995201_399254401_4FGL_J1418.4+3543_daily_bin616.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/318724/ft2_4FGL_J1418.4+3543_daily_bin616.fits
.....................!
real 12.14
user 11.81
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/318724/ft1_filtered_4FGL_J1418.4+3543_daily_bin616.fits evtable="EVENTS" scfile=/scratch/kocevski/318724/ft2_4FGL_J1418.4+3543_daily_bin616.fits sctable="SC_DATA" expcube=/scratch/kocevski/318724/ltcube_398995201_399254401_4FGL_J1418.4+3543_daily_bin616.fits outfile=/scratch/kocevski/318724/expmap_398995201_399254401_4FGL_J1418.4+3543_daily_bin616.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/318724/ltcube_398995201_399254401_4FGL_J1418.4+3543_daily_bin616.fits
.....................!
real 191.82
user 185.71
sys 5.46

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/318724/ft1_filtered_4FGL_J1418.4+3543_daily_bin616.fits scfile=/scratch/kocevski/318724/ft2_4FGL_J1418.4+3543_daily_bin616.fits outfile=/scratch/kocevski/318724/cmap_398995201_399254401_4FGL_J1418.4+3543_daily_bin616.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/318724/ft1_filtered_4FGL_J1418.4+3543_daily_bin616.fits scfile=/scratch/kocevski/318724/ft2_4FGL_J1418.4+3543_daily_bin616.fits outfile=/scratch/kocevski/318724/cmap_HighResolution_398995201_399254401_4FGL_J1418.4+3543_daily_bin616.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    67.646       1.0000         .10000E-03   10000.    
     4 'norm      '    8.0228       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.2485       1.0000         .10000E-03   10000.    
     6 'norm      '    3.2619       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10149E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .37097E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    25.951       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.4020       1.0000         .10000E-03   10000.    
    13 'norm      '    .11446E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10192E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10126E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    42.218       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.757       1.0000         .10000E-03   10000.    
    18 'norm      '    .10062E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    37.978       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.7242       1.0000         .10000E-03   10000.    
    21 'norm      '    2.4315       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1245       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0254       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=   4493.146     FROM MIGRAD    STATUS=CONVERGED    551 CALLS     2692 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    56.068       -.61854E-06** at limit **
   2  Prefactor     .10000E-03    10.661       -.23068E-06** at limit **
   3  Prefactor     67.541        96.425        .59606E-05   -.15222E-05
   4  norm          8.0231        2.7013       -.12978E-07    .12820E-04
   5  Prefactor     4.2485        6.5765        .11134E-05    .42530E-04
   6  norm          3.2592        14.007       -.11135E-06    .88214E-06
   7  Prefactor     .10000E-03    7.8522        .11896E-06** at limit **
   8  Prefactor     .10000E-03    15.338       -.82799E-06** at limit **
   9  norm          .10000E-03    5.8286       -.26957E-07** at limit **
  10  Prefactor     .10000E-03    17.523       -.51071E-06** at limit **
  11  Prefactor     25.875        22.619        .26473E-06    .99749E-04
  12  Prefactor     3.4007        4.3880        .94403E-07    .15337E-04
  13  norm          .10000E-03    13.175        .85225E-06** at limit **
  14  Prefactor     .10000E-03    24.971        .30450E-06** at limit **
  15  norm          .10000E-03    6.9924       -.10343E-06** at limit **
  16  Prefactor     42.176        39.853        .16764E-05    .12311E-05
  17  Prefactor     14.761        57.218       -.92600E-07    .75483E-06
  18  norm          .10000E-03    3.7320       -.20757E-07** at limit **
  19  Prefactor     37.987        23.013        .26799E-07    .54821E-05
  20  Prefactor     6.7236        9.6960        .38795E-06    .10389E-04
  21  norm          2.4318        2.4654        .23518E-07    .32222E-05
  22  Prefactor     .10000E-03    54.052       -.15900E-06** at limit **
  23  Normalizat    1.1245        .23227        .78929E-06    .35622E-04
  24  Prefactor     1.0252        .24586       -.19320E-05    .45338E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 67.5409
  norm       = 8.0231
  Prefactor  = 4.2485
  norm       = 3.25919
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 25.8753
  Prefactor  = 3.40069
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 42.1755
  Prefactor  = 14.7612
  norm       = 0.0001
  Prefactor  = 37.9869
  Prefactor  = 6.72362
  norm       = 2.43177
  Prefactor  = 0.0001
  Normalizat = 1.12446
  Prefactor  = 1.02525
 **********
 **   18 **HESSE 
 **********

 FCN=   4493.146     FROM HESSE     STATUS=OK           399 CALLS     3091 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    56.124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     67.541        97.295        .24400E-03   -1.4062    
   4  norm          8.0231        2.7070        .61430E-04   -1.5141    
   5  Prefactor     4.2485        6.7755        .97743E-03   -1.5296    
   6  norm          3.2592        13.961        .22423E-03   -1.5347    
   7  Prefactor     .10000E-03    7.8525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    5.9908        .31565E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    97.839        .47925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     25.875        20.417        .78637E-04   -1.4690    
  12  Prefactor     3.4007        4.3789        .15255E-03   -1.5339    
  13  norm          .10000E-03    13.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    25.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    7.2945        .34610E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     42.176        39.865        .30848E-03   -1.4408    
  17  Prefactor     14.761        57.361        .10426E-03   -1.4939    
  18  norm          .10000E-03    3.7329        .12647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     37.987        23.006        .65036E-04   -1.4475    
  20  Prefactor     6.7236        9.6731        .77369E-03   -1.5189    
  21  norm          2.4318        2.4461        .97371E-04   -1.5396    
  22  Prefactor     .10000E-03    54.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1245        .28270        .25052E-03   -.88970    
  24  Prefactor     1.0252        .29079        .28979E-03   -.91893    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.23116e-11
Minuit parameter uncertainties:
  1  2.6435e-05
  2  1.06067e-07
  3  97.5249
  4  2.707
  5  6.7767
  6  13.496
  7  1.46149e-06
  8  6.57246e-06
  9  2.06706e-06
  10  0.000683077
  11  20.4227
  12  4.37927
  13  2.47306e-06
  14  1.21194e-05
  15  1.43211e-06
  16  39.8901
  17  57.5764
  18  1.032e-07
  19  23.0109
  20  9.67534
  21  2.44622
  22  1.7951e-06
  23  0.283086
  24  0.291239
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.000e-04  2.067e-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.025e+00  2.912e-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.124e+00  2.831e-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: 7.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.41e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/318724/likelihoodResults_398995201_399254401_4FGL_J1418.4+3543_daily_bin616.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): 102
logL (Free Index) = 4493.14646433
delta logL = -0.000796063253802

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4493.14566785
delta logL = 4.21531694883e-07

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4493.117     FROM MIGRAD    STATUS=CONVERGED    192 CALLS      347 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16702E-01    2.1832        .77455E-02    .50665E-02
   2  alpha         5.0000        3.5712        .50000    ** at limit **
   3  Normalizat    1.1085        .40434E-01    .25051E-03   -.34795E-03
   4  Prefactor     1.0367        .44443E-01    .28979E-03   -.39015E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0167025
  alpha      = 5
  Normalizat = 1.10847
  Prefactor  = 1.03669
 **********
 **   18 **HESSE 
 **********

 FCN=   4493.117     FROM HESSE     STATUS=OK            33 CALLS      380 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .16702E-01    .14349        .27835E-03   -1.5682    
   2  alpha         5.0000        2.5781        .50000        1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1085        .26762        .50102E-04   -.89480    
   4  Prefactor     1.0367        .29219        .57958E-04   -.91516    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.65776e-10
Minuit parameter uncertainties:
  1  0.0976178
  2  0.00361516
  3  0.267943
  4  0.292637
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/318724': 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) = 4493.11687641
delta logL = 0.0287918555514

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.670e-02  9.762e-02  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  5.000e+00  3.615e-03  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.037e+00  2.926e-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.108e+00  2.679e-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/318724/cmap_HighResolution_398995201_399254401_4FGL_J1418.4+3543_daily_bin616.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.41e-05', job_status='DONE', photon_flux_upper_limit='7.75e-08', time_completed='2021-09-09 08:20:55.720499', job_id='318724', GAL2='1.04', fit_tolerance='1e-08', EG2='1.11', EG='1.12', time_epoch_completed='1631200855.72', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='2.88e-02', ts2='0.06', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='616' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:20:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 318724: <4FGL_J1418.4+3543_daily_bin616> in cluster <slac> Done

Job <4FGL_J1418.4+3543_daily_bin616> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 08:10:24 2021
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 08:10: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:10:26 2021
Terminated at Thu Sep  9 08:20:56 2021
Results reported at Thu Sep  9 08:20:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin616 214.623 35.7192 398995201 399254401 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 :                                   584.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   629 sec.
    Turnaround time :                            632 sec.

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

