/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 5 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 = 7478
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1418.4+3543_daily_bin287
RA = 214.623, Dec = 35.7192
tmin = 313718401, tmax = 313977601
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='315238', job_status='RUN', time_executed='2021-09-09 08:00:38.523155', time_epoch_executed='1631199638.52' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='287'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/315238

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/315238/ft1_4FGL_J1418.4+3543_daily_bin287.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/315238/ft2_4FGL_J1418.4+3543_daily_bin287.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/315238/ft1_4FGL_J1418.4+3543_daily_bin287.fits outfile=/scratch/kocevski/315238/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin287.fits ra=214.623 dec=35.7192 rad=12.0 tmin=313718401.0 tmax=313977601.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.66
user 3.10
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/315238/ft1_filtered_4FGL_J1418.4+3543_daily_bin287.fits" evtable="EVENTS" scfile=/scratch/kocevski/315238/ft2_4FGL_J1418.4+3543_daily_bin287.fits sctable="SC_DATA" outfile=/scratch/kocevski/315238/ltcube_313718401_313977601_4FGL_J1418.4+3543_daily_bin287.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/315238/ft2_4FGL_J1418.4+3543_daily_bin287.fits
.....................!
real 11.92
user 11.59
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/315238/ft1_filtered_4FGL_J1418.4+3543_daily_bin287.fits evtable="EVENTS" scfile=/scratch/kocevski/315238/ft2_4FGL_J1418.4+3543_daily_bin287.fits sctable="SC_DATA" expcube=/scratch/kocevski/315238/ltcube_313718401_313977601_4FGL_J1418.4+3543_daily_bin287.fits outfile=/scratch/kocevski/315238/expmap_313718401_313977601_4FGL_J1418.4+3543_daily_bin287.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/315238/ltcube_313718401_313977601_4FGL_J1418.4+3543_daily_bin287.fits
.....................!
real 191.33
user 185.83
sys 5.11

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/315238/ft1_filtered_4FGL_J1418.4+3543_daily_bin287.fits scfile=/scratch/kocevski/315238/ft2_4FGL_J1418.4+3543_daily_bin287.fits outfile=/scratch/kocevski/315238/cmap_313718401_313977601_4FGL_J1418.4+3543_daily_bin287.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/315238/ft1_filtered_4FGL_J1418.4+3543_daily_bin287.fits scfile=/scratch/kocevski/315238/ft2_4FGL_J1418.4+3543_daily_bin287.fits outfile=/scratch/kocevski/315238/cmap_HighResolution_313718401_313977601_4FGL_J1418.4+3543_daily_bin287.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/315238/ft1_filtered_4FGL_J1418.4+3543_daily_bin287.fits evtable="EVENTS" scfile=/scratch/kocevski/315238/ft2_4FGL_J1418.4+3543_daily_bin287.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/315238/Model_4FGL_J1418.4+3543_daily_bin287.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/315238/ft1_filtered_4FGL_J1418.4+3543_daily_bin287.fits.....................!
real 43.00
user 41.56
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.0199       1.0000         .10000E-03   10000.    
     3 'Prefactor '    58.671       1.0000         .10000E-03   10000.    
     4 'norm      '    3.1766       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.0502       1.0000         .10000E-03   10000.    
     6 'norm      '    16.854       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.5076       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.1647       1.0000         .10000E-03   10000.    
    13 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10614E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    35.695       1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.283       1.0000         .10000E-03   10000.    
    18 'norm      '    9.1220       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.7071       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .90626       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .91311       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=   5352.486     FROM MIGRAD    STATUS=CONVERGED    532 CALLS     2690 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.555       -.38800E-05** at limit **
   2  Prefactor     4.0200        10.623       -.52793E-06   -.94748E-04
   3  Prefactor     58.672        58.329        .65137E-06    .31010E-05
   4  norm          3.1767        1.6238       -.91804E-07   -.11333E-03
   5  Prefactor     3.0503        3.3073       -.40186E-06   -.27434E-03
   6  norm          16.855        13.673       -.54096E-06   -.44753E-04
   7  Prefactor     .10000E-03    10.777        .29687E-05** at limit **
   8  Prefactor     .10000E-03    7.4339       -.78312E-06** at limit **
   9  norm          .10000E-03    1.8254       -.72189E-07** at limit **
  10  Prefactor     7.5079        15.369        .29862E-05   -.16410E-03
  11  Prefactor     .10000E-03    20.747        .59432E-05** at limit **
  12  Prefactor     1.1650        2.9060       -.90867E-06   -.92391E-03
  13  norm          .10000E-03    6.4926        .24074E-06** at limit **
  14  Prefactor     .10000E-03    24.438       -.31797E-05** at limit **
  15  norm          .10000E-03    2.4638        .14346E-06** at limit **
  16  Prefactor     35.679        43.109       -.22600E-04    .63927E-05
  17  Prefactor     23.281        25.319       -.24201E-05    .12590E-06
  18  norm          9.1212        7.2137        .69701E-07    .18321E-05
  19  Prefactor     .10000E-03    21.829        .41161E-05** at limit **
  20  Prefactor     .10004E-03    4.7942       -.15894E-05** at limit **
  21  norm          .10000E-03    .60275        .24913E-06** at limit **
  22  Prefactor     9.7019        80.462       -.14503E-04   -.31342E-05
  23  Normalizat    .90627        .16542        .15519E-05   -.16745E-04
  24  Prefactor     .91307        .18217        .74019E-06    .68276E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.02004
  Prefactor  = 58.6721
  norm       = 3.17667
  Prefactor  = 3.05033
  norm       = 16.8548
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.50793
  Prefactor  = 0.0001
  Prefactor  = 1.16496
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 35.6786
  Prefactor  = 23.2809
  norm       = 9.12121
  Prefactor  = 0.0001
  Prefactor  = 0.000100039
  norm       = 0.0001
  Prefactor  = 9.70187
  Normalizat = 0.906268
  Prefactor  = 0.913069
 **********
 **   18 **HESSE 
 **********

 FCN=   5352.486     FROM HESSE     STATUS=OK           401 CALLS     3091 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.0200        10.610        .20113E-03   -1.5307    
   3  Prefactor     58.672        58.537        .52377E-04   -1.4175    
   4  norm          3.1767        1.6227        .64333E-04   -1.5351    
   5  Prefactor     3.0503        3.3034        .13291E-03   -1.5359    
   6  norm          16.855        13.669        .97558E-04   -1.4887    
   7  Prefactor     .10000E-03    10.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.4527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.8439        .96419E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.5079        15.343        .14637E-03   -1.5160    
  11  Prefactor     .10000E-03    20.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.1650        2.8946        .18841E-03   -1.5492    
  13  norm          .10000E-03    6.4985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    24.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.4797        .11213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     35.679        43.084        .67077E-04   -1.4513    
  17  Prefactor     23.281        25.337        .83014E-04   -1.4743    
  18  norm          9.1212        7.2107        .13270E-03   -1.5104    
  19  Prefactor     .10000E-03    22.380        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10004E-03    13.601        .30192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .85465        .10752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.7019        80.035        .12862E-03   -1.5085    
  23  Normalizat    .90627        .19660        .21519E-03   -.96240    
  24  Prefactor     .91307        .21697        .24969E-03   -.95686    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.79082e-09
Minuit parameter uncertainties:
  1  1.53491e-05
  2  10.615
  3  58.5942
  4  1.62267
  5  3.30364
  6  13.6713
  7  4.48176e-05
  8  6.92394e-06
  9  8.75653e-06
  10  15.3511
  11  9.40397e-05
  12  2.89492
  13  1.54372e-05
  14  0.000212746
  15  2.38418e-05
  16  43.1213
  17  25.3489
  18  7.21143
  19  9.01398e-07
  20  0.00145131
  21  2.24998e-05
  22  55.8326
  23  0.196752
  24  0.217177
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.000e-04  8.757e-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:  9.131e-01  2.172e-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:  9.063e-01  1.968e-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: 4.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.57e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/315238/likelihoodResults_313718401_313977601_4FGL_J1418.4+3543_daily_bin287.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) = 5352.48833898
delta logL = -0.00257814176712

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5352.48576003
delta logL = 8.1089183368e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0433       1.0000          .0000       5.0000    
     3 'Normalizat'    .90627       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91307       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=   5352.486     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      192 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.9308        .90712E-02** at limit **
   2  alpha         2.0716        3.5114        .42055       -.74049E-04
   3  Normalizat    .90627        .15434        .44982E-01   -.17601E-04
   4  Prefactor     .91307        .18055        .45171E-01    .61048E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 2.07164
  Normalizat = 0.906268
  Prefactor  = 0.913069
 **********
 **   18 **HESSE 
 **********

 FCN=   5352.486     FROM HESSE     STATUS=OK            31 CALLS      223 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.9698        .99367E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0716        3.4387        .16822       -.17219    
   3  Normalizat    .90627        .18196        .21519E-03   -.96240    
   4  Prefactor     .91307        .21295        .24969E-03   -.95686    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.92335e-09
Minuit parameter uncertainties:
  1  6.30746e-05
  2  2.46755
  3  0.182081
  4  0.213143
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/315238': 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) = 5352.48575918
delta logL = 1.66206245922e-06

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.000e-04  6.307e-05  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  2.072e+00  2.468e+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:  9.131e-01  2.131e-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:  9.063e-01  1.821e-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/315238/cmap_HighResolution_313718401_313977601_4FGL_J1418.4+3543_daily_bin287.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.57e-05', job_status='DONE', photon_flux_upper_limit='4.52e-08', time_completed='2021-09-09 08:11:08.158337', job_id='315238', GAL2='0.91', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1631200268.16', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.66e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='287' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:11:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 315238: <4FGL_J1418.4+3543_daily_bin287> in cluster <slac> Done

Job <4FGL_J1418.4+3543_daily_bin287> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  9 08:00:22 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 08:00: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:00:24 2021
Terminated at Thu Sep  9 08:11:08 2021
Results reported at Thu Sep  9 08:11:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin287 214.623 35.7192 313718401 313977601 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 :                                   625.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             388.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   644 sec.
    Turnaround time :                            646 sec.

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

