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


Performing analysis on: 4FGL_J1418.4+3543_daily_bin1009
RA = 214.623, Dec = 35.7192
tmin = 500860801, tmax = 501120001
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='320500', job_status='RUN', time_executed='2021-09-09 08:18:59.585973', time_epoch_executed='1631200739.59' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='1009'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/320500

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/320500/ft1_4FGL_J1418.4+3543_daily_bin1009.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/320500/ft2_4FGL_J1418.4+3543_daily_bin1009.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/320500/ft1_4FGL_J1418.4+3543_daily_bin1009.fits outfile=/scratch/kocevski/320500/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1009.fits ra=214.623 dec=35.7192 rad=12.0 tmin=500860801.0 tmax=501120001.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 4.59
user 4.30
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/320500/ft1_filtered_4FGL_J1418.4+3543_daily_bin1009.fits evtable="EVENTS" scfile=/scratch/kocevski/320500/ft2_4FGL_J1418.4+3543_daily_bin1009.fits sctable="SC_DATA" expcube=/scratch/kocevski/320500/ltcube_500860801_501120001_4FGL_J1418.4+3543_daily_bin1009.fits outfile=/scratch/kocevski/320500/expmap_500860801_501120001_4FGL_J1418.4+3543_daily_bin1009.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/320500/ltcube_500860801_501120001_4FGL_J1418.4+3543_daily_bin1009.fits
.....................!
real 191.82
user 187.32
sys 4.01

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/320500/ft1_filtered_4FGL_J1418.4+3543_daily_bin1009.fits scfile=/scratch/kocevski/320500/ft2_4FGL_J1418.4+3543_daily_bin1009.fits outfile=/scratch/kocevski/320500/cmap_500860801_501120001_4FGL_J1418.4+3543_daily_bin1009.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.56
user 0.39
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .32936E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10731E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    8.7309       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .18435E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.389       1.0000         .10000E-03   10000.    
     9 'norm      '    .76929       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11322E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.2104       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.4363       1.0000         .10000E-03   10000.    
    13 'norm      '    3.3700       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10720E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10410E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    38.314       1.0000         .10000E-03   10000.    
    18 'norm      '    .10082E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.138       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.9068       1.0000         .10000E-03   10000.    
    21 'norm      '    1.2275       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .72783       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0393       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=   4587.259     FROM MIGRAD    STATUS=CONVERGED   1020 CALLS     3231 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10739E-03    53.661        .14651    ** at limit **
   2  Prefactor     .10000E-03    22.855        .18142E-02** at limit **
   3  Prefactor     .10000E-03    67.035        .18142E-02** at limit **
   4  norm          8.7301        2.4360        .53316E-04   -.10917E-03
   5  Prefactor     .18824E-03    9.6817        .33673E-01** at limit **
   6  norm          .10000E-03    6.5205        .16866E-02** at limit **
   7  Prefactor     .10000E-03    8.8369        .18142E-02** at limit **
   8  Prefactor     17.374        20.569        .96047E-04   -.36693E-04
   9  norm          .76811        3.1900        .23267E-03    .60294E-04
  10  Prefactor     .10000E-03    22.656        .18142E-02** at limit **
  11  Prefactor     8.2166        16.627        .13992E-03   -.18225E-03
  12  Prefactor     2.4362        3.3816        .14056E-03   -.69477E-04
  13  norm          3.3668        10.111        .22043E-03   -.88502E-04
  14  Prefactor     .10000E-03    35.336        .18142E-02** at limit **
  15  norm          .10000E-03    9.7192        .49078E-01** at limit **
  16  Prefactor     .10000E-03    27.275        .18142E-02** at limit **
  17  Prefactor     38.281        39.195        .64751E-04   -.13017E-03
  18  norm          .10000E-03    6.4131        .16710E-02** at limit **
  19  Prefactor     14.127        11.662        .10652E-03   -.93364E-04
  20  Prefactor     1.9003        7.2462        .15055E-02    .13657E-02
  21  norm          1.2286        1.6966        .90359E-04    .70080E-04
  22  Prefactor     .10000E-03    31.819        .18142E-02** at limit **
  23  Normalizat    .72801        .22562        .23694E-03   -.41334E-03
  24  Prefactor     1.0394        .24631        .23497E-03   -.54723E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000107393
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.73011
  Prefactor  = 0.000188236
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.3744
  norm       = 0.768109
  Prefactor  = 0.000100002
  Prefactor  = 8.21664
  Prefactor  = 2.43616
  norm       = 3.36681
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.2813
  norm       = 0.0001
  Prefactor  = 14.1267
  Prefactor  = 1.9003
  norm       = 1.22857
  Prefactor  = 0.0001
  Normalizat = 0.72801
  Prefactor  = 1.03942
 **********
 **   18 **HESSE 
 **********

 FCN=   4587.259     FROM HESSE     STATUS=OK           403 CALLS     3634 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10739E-03    53.952        .14592       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    22.863        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    67.043        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.7301        2.4359        .21326E-05   -1.5117    
   5  Prefactor     .18824E-03    5.6925        .45963E-01   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.5211        .33732E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.8372        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.374        20.567        .38419E-05   -1.4874    
   9  norm          .76811        3.1885        .93070E-05   -1.5533    
  10  Prefactor     .10000E-03    22.657        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.2166        16.616        .55967E-05   -1.5135    
  12  Prefactor     2.4362        3.3811        .56224E-05   -1.5396    
  13  norm          3.3668        10.110        .88172E-05   -1.5341    
  14  Prefactor     .10000E-03    35.346        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    8.8849        .51933E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    27.275        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     38.281        39.187        .12950E-04   -1.4470    
  18  norm          .10000E-03    6.4141        .33420E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.127        11.661        .21304E-04   -1.4956    
  20  Prefactor     1.9003        7.2128        .60222E-04   -1.5432    
  21  norm          1.2286        1.6899        .36144E-05   -1.5486    
  22  Prefactor     .10000E-03    31.819        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .72801        .22588        .47388E-04   -1.0280    
  24  Prefactor     1.0394        .24659        .46993E-04   -.91427    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.67451e-09
Minuit parameter uncertainties:
  1  0.0399791
  2  0.000101645
  3  0.000289178
  4  2.43591
  5  0.0448276
  6  2.35927e-05
  7  3.03814e-05
  8  20.5749
  9  3.13003
  10  0.000389334
  11  16.6257
  12  3.3814
  13  10.1149
  14  1.13536e-06
  15  0.000113761
  16  7.37917e-05
  17  39.2134
  18  4.04612e-06
  19  11.6625
  20  7.21607
  21  1.68995
  22  0.000244526
  23  0.226169
  24  0.246864
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  7.681e-01  3.130e+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.039e+00  2.469e-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.280e-01  2.262e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/320500/likelihoodResults_500860801_501120001_4FGL_J1418.4+3543_daily_bin1009.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) = 4587.04406257
delta logL = 0.215130470364

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4587.02193243
delta logL = 0.237260610545

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .32647       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6933       1.0000          .0000       5.0000    
     3 'Normalizat'    .69762       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0629       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=   4587.022     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      221 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .31985        9.8129        .10541E-01   -.87710E-03
   2  alpha         3.7061        4.2752        .49643        .19129E-05
   3  Normalizat    .69780        .31256E-01    .42259E-01   -.61473E-03
   4  Prefactor     1.0625        .36673E-01    .39209E-01   -.85328E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.319853
  alpha      = 3.70607
  Normalizat = 0.697802
  Prefactor  = 1.06246
 **********
 **   18 **HESSE 
 **********

 FCN=   4587.022     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      252 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .31985        35.746        .58150E-03   -1.5595    
   2  alpha         3.7061        2.8769        .22541E-01    .50342    
   3  Normalizat    .69780        .13857        .24157E-03   -1.0398    
   4  Prefactor     1.0625        .16136        .23269E-03   -.90676    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.11677e-09
Minuit parameter uncertainties:
  1  6.76574
  2  12.8886
  3  0.138636
  4  0.161433
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/320500': 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): 102
logL (Free Index) = 4587.02192441
delta logL = 0.237268621834

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  3.199e-01  6.766e+00  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  3.706e+00  1.289e+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.062e+00  1.614e-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.978e-01  1.386e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.07
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/320500/cmap_HighResolution_500860801_501120001_4FGL_J1418.4+3543_daily_bin1009.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.45e-05', job_status='DONE', photon_flux_upper_limit='6.05e-08', time_completed='2021-09-09 08:29:18.430448', job_id='320500', GAL2='1.06', fit_tolerance='1e-08', EG2='0.70', EG='0.73', time_epoch_completed='1631201358.43', return_code2='102', ts='0.07', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='2.37e-01', ts2='0.57', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='1009' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:29:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 320500: <4FGL_J1418.4+3543_daily_bin1009> in cluster <slac> Done

Job <4FGL_J1418.4+3543_daily_bin1009> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep  9 08:15:37 2021
Job was executed on host(s) <bullet0290>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 08:15:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 08:15:39 2021
Terminated at Thu Sep  9 08:29:19 2021
Results reported at Thu Sep  9 08:29:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin1009 214.623 35.7192 500860801 501120001 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 :                                   616.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             260.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            822 sec.

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

