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


Performing analysis on: 4FGL_J1418.4+3543_daily_bin1506
RA = 214.623, Dec = 35.7192
tmin = 629683201, tmax = 629942401
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='323504', job_status='RUN', time_executed='2021-09-09 08:29:30.729656', time_epoch_executed='1631201370.73' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='1506'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/323504

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/323504/ft1_4FGL_J1418.4+3543_daily_bin1506.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/323504/ft2_4FGL_J1418.4+3543_daily_bin1506.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/323504/ft1_4FGL_J1418.4+3543_daily_bin1506.fits outfile=/scratch/kocevski/323504/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1506.fits ra=214.623 dec=35.7192 rad=12.0 tmin=629683201.0 tmax=629942401.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.53
user 3.29
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/323504/ft1_filtered_4FGL_J1418.4+3543_daily_bin1506.fits" evtable="EVENTS" scfile=/scratch/kocevski/323504/ft2_4FGL_J1418.4+3543_daily_bin1506.fits sctable="SC_DATA" outfile=/scratch/kocevski/323504/ltcube_629683201_629942401_4FGL_J1418.4+3543_daily_bin1506.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/323504/ft2_4FGL_J1418.4+3543_daily_bin1506.fits
.....................!
real 11.54
user 11.18
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/323504/ft1_filtered_4FGL_J1418.4+3543_daily_bin1506.fits evtable="EVENTS" scfile=/scratch/kocevski/323504/ft2_4FGL_J1418.4+3543_daily_bin1506.fits sctable="SC_DATA" expcube=/scratch/kocevski/323504/ltcube_629683201_629942401_4FGL_J1418.4+3543_daily_bin1506.fits outfile=/scratch/kocevski/323504/expmap_629683201_629942401_4FGL_J1418.4+3543_daily_bin1506.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/323504/ltcube_629683201_629942401_4FGL_J1418.4+3543_daily_bin1506.fits
.....................!
real 190.99
user 185.57
sys 5.06

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/323504/ft1_filtered_4FGL_J1418.4+3543_daily_bin1506.fits scfile=/scratch/kocevski/323504/ft2_4FGL_J1418.4+3543_daily_bin1506.fits outfile=/scratch/kocevski/323504/cmap_629683201_629942401_4FGL_J1418.4+3543_daily_bin1506.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/323504/ft1_filtered_4FGL_J1418.4+3543_daily_bin1506.fits scfile=/scratch/kocevski/323504/ft2_4FGL_J1418.4+3543_daily_bin1506.fits outfile=/scratch/kocevski/323504/cmap_HighResolution_629683201_629942401_4FGL_J1418.4+3543_daily_bin1506.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.9869       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.5782       1.0000         .10000E-03   10000.    
     6 'norm      '    8.0323       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    7.1652       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.4260       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.4751       1.0000         .10000E-03   10000.    
    13 'norm      '    7.2219       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    33.091       1.0000         .10000E-03   10000.    
    17 'Prefactor '    56.067       1.0000         .10000E-03   10000.    
    18 'norm      '    2.0639       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.4831       1.0000         .10000E-03   10000.    
    21 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .56854       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2306       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=   4816.909     FROM MIGRAD    STATUS=CONVERGED    562 CALLS     2726 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.183        .22307E-05** at limit **
   2  Prefactor     .10002E-03    63.481        .75190E-05** at limit **
   3  Prefactor     .10001E-03    31.963       -.34920E-05** at limit **
   4  norm          3.9868        1.9992        .13175E-07   -.37375E-04
   5  Prefactor     6.5773        3.9874        .12767E-06   -.10072E-03
   6  norm          8.0314        13.342        .15420E-05   -.21383E-03
   7  Prefactor     .10000E-03    5.3555       -.10442E-06** at limit **
   8  Prefactor     .10000E-03    16.450       -.10797E-05** at limit **
   9  norm          7.1654        4.7857       -.28127E-06   -.21900E-03
  10  Prefactor     .10000E-03    13.517       -.12066E-05** at limit **
  11  Prefactor     5.4372        12.851        .49293E-05   -.35958E-03
  12  Prefactor     1.4747        3.7026        .64479E-06   -.11919E-03
  13  norm          7.2218        10.002       -.31783E-06   -.22878E-04
  14  Prefactor     .10000E-03    44.981        .12460E-05** at limit **
  15  norm          .10000E-03    3.1431       -.31001E-07** at limit **
  16  Prefactor     33.095        32.533        .33465E-06    .58698E-04
  17  Prefactor     56.062        36.653       -.42591E-06   -.12060E-03
  18  norm          2.0640        5.3970        .63237E-06   -.19369E-06
  19  Prefactor     .10000E-03    3.1308        .17855E-08** at limit **
  20  Prefactor     3.4830        6.1401        .47694E-06    .12024E-04
  21  norm          .10000E-03    .57447        .86835E-08** at limit **
  22  Prefactor     .10003E-03    87.932       -.68864E-05** at limit **
  23  Normalizat    .56869        .17330       -.87655E-06   -.61000E-04
  24  Prefactor     1.2304        .19731       -.19217E-06   -.64619E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 0.000100018
  Prefactor  = 0.000100007
  norm       = 3.98682
  Prefactor  = 6.57727
  norm       = 8.03144
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 7.16541
  Prefactor  = 0.000100001
  Prefactor  = 5.43716
  Prefactor  = 1.4747
  norm       = 7.22177
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 33.0954
  Prefactor  = 56.0618
  norm       = 2.06398
  Prefactor  = 0.0001
  Prefactor  = 3.48299
  norm       = 0.0001
  Prefactor  = 0.000100027
  Normalizat = 0.568687
  Prefactor  = 1.23044
 **********
 **   18 **HESSE 
 **********

 FCN=   4816.909     FROM HESSE     STATUS=OK           395 CALLS     3121 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10002E-03    68.448        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    33.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.9868        1.9994        .66420E-04   -1.5309    
   5  Prefactor     6.5773        3.9869        .10336E-03   -1.5195    
   6  norm          8.0314        13.423        .70735E-03   -1.5141    
   7  Prefactor     .10000E-03    5.3579        .15689E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.1654        4.7744        .11740E-03   -1.5173    
  10  Prefactor     .10000E-03    13.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.4372        13.455        .86254E-03   -1.5242    
  12  Prefactor     1.4747        3.6791        .19697E-03   -1.5465    
  13  norm          7.2218        9.9995        .14926E-03   -1.5170    
  14  Prefactor     .10000E-03    45.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.1621        .12013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     33.095        32.567        .69658E-04   -1.4557    
  17  Prefactor     56.062        36.811        .53573E-04   -1.4209    
  18  norm          2.0640        5.3614        .25402E-03   -1.5421    
  19  Prefactor     .10000E-03    3.1323        .11993E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.4830        5.9901        .21447E-03   -1.5335    
  21  norm          .10000E-03    .89221        .99815E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10003E-03    92.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .56869        .20760        .26240E-03   -1.0933    
  24  Prefactor     1.2304        .23756        .22071E-03   -.85400    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53967e-09
Minuit parameter uncertainties:
  1  0.000507965
  2  0.00220653
  3  0.000969237
  4  1.99939
  5  3.98705
  6  13.4277
  7  1.00835e-05
  8  0.000210468
  9  4.77468
  10  0.000179236
  11  13.4626
  12  3.67969
  13  10.0018
  14  0.000333072
  15  4.24207e-06
  16  32.5846
  17  36.8263
  18  5.36262
  19  1.67827e-07
  20  5.99113
  21  4.48706e-06
  22  0.00313747
  23  0.207884
  24  0.23777
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  7.165e+00  4.775e+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.230e+00  2.378e-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:  5.687e-01  2.079e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.98
Ra Dec: 214.623 35.719
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 4.35e-08 +/- 2.90e-08
Energy Flux (Fixed Index): 2.48e-05 +/- 1.65e-05

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) = 4816.50671167
delta logL = 0.402198286421

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4816.50576921
delta logL = 0.403140748204

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.7999       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5722       1.0000          .0000       5.0000    
     3 'Normalizat'    .52778       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2609       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=   4816.506     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      237 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.8019        63.037        .41692E-02    .22715E-03
   2  alpha         2.5726        3.7565        .26233        .57666E-04
   3  Normalizat    .52766        .81523E-01    .61375E-01    .45904E-04
   4  Prefactor     1.2609        .78737E-01    .49369E-01    .31234E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.8019
  alpha      = 2.57264
  Normalizat = 0.527664
  Prefactor  = 1.26094
 **********
 **   18 **HESSE 
 **********

 FCN=   4816.506     FROM HESSE     STATUS=OK            31 CALLS      268 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.8019        4.6448        .88200E-04   -1.5226    
   2  alpha         2.5726        .64396        .10028E-01    .29059E-01
   3  Normalizat    .52766        .20167        .27156E-03   -1.1115    
   4  Prefactor     1.2609        .23805        .21825E-03   -.84476    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25304e-11
Minuit parameter uncertainties:
  1  4.64512
  2  0.651309
  3  0.201948
  4  0.238259
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/323504': 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) = 4816.50576809
delta logL = 0.403141867707

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  5.802e+00  4.645e+00  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  2.573e+00  6.513e-01  0.000e+00  5.000e+00 ( 1.000e+00)
285         beta:  6.612e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
286           Eb:  8.292e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  1.261e+00  2.383e-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:  5.277e-01  2.019e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.82
Ra Dec: 214.623 35.719
Photon Index (Free Index): 2.57 +/- 0.65
Photon Flux (Free Index): 7.21e-08 +/- 4.77e-08
Energy Flux (Free Index): 1.99e-05 +/- 1.18e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/323504/cmap_HighResolution_629683201_629942401_4FGL_J1418.4+3543_daily_bin1506.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.35e-08', energy_flux2='1.99e-05', photon_flux_error='2.90e-08', dlogl='4.03e-01', energy_flux='2.48e-05', photon_flux2='7.21e-08', job_status='DONE', time_completed='2021-09-09 08:38:37.989690', photon_index_error2='0.65', photon_index2='2.57', ts='5.98', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', energy_flux_error2='1.18e-05', EG='0.57', time_epoch_completed='1631201917.99', return_code='0', job_id='323504', GAL2='1.26', EG2='0.53', return_code2='0', energy_flux_error='1.65e-05', photon_flux_error2='4.77e-08', ts2='6.82', photon_index='2.02' WHERE bin_id='1506' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:38:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 323504: <4FGL_J1418.4+3543_daily_bin1506> in cluster <slac> Done

Job <4FGL_J1418.4+3543_daily_bin1506> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Thu Sep  9 08:25:23 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 08:25:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 08:25:24 2021
Terminated at Thu Sep  9 08:38:39 2021
Results reported at Thu Sep  9 08:38:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin1506 214.623 35.7192 629683201 629942401 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 :                                   541.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             224.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            796 sec.

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

