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


Performing analysis on: 4FGL_J1418.4+3543_daily_bin1299
RA = 214.623, Dec = 35.7192
tmin = 576028801, tmax = 576288001
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='322041', job_status='RUN', time_executed='2021-09-09 08:23:42.112094', time_epoch_executed='1631201022.11' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='1299'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/322041

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/322041/ft1_4FGL_J1418.4+3543_daily_bin1299.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/322041/ft2_4FGL_J1418.4+3543_daily_bin1299.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/322041/ft1_4FGL_J1418.4+3543_daily_bin1299.fits outfile=/scratch/kocevski/322041/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1299.fits ra=214.623 dec=35.7192 rad=12.0 tmin=576028801.0 tmax=576288001.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.62
user 3.37
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/322041/ft2_4FGL_J1418.4+3543_daily_bin1299.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/322041/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1299.fits evtable="EVENTS" outfile="/scratch/kocevski/322041/ft1_filtered_4FGL_J1418.4+3543_daily_bin1299.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/322041/ft1_filtered_4FGL_J1418.4+3543_daily_bin1299.fits" evtable="EVENTS" scfile=/scratch/kocevski/322041/ft2_4FGL_J1418.4+3543_daily_bin1299.fits sctable="SC_DATA" outfile=/scratch/kocevski/322041/ltcube_576028801_576288001_4FGL_J1418.4+3543_daily_bin1299.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/322041/ft2_4FGL_J1418.4+3543_daily_bin1299.fits
.....................!
real 11.85
user 11.52
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/322041/ft1_filtered_4FGL_J1418.4+3543_daily_bin1299.fits evtable="EVENTS" scfile=/scratch/kocevski/322041/ft2_4FGL_J1418.4+3543_daily_bin1299.fits sctable="SC_DATA" expcube=/scratch/kocevski/322041/ltcube_576028801_576288001_4FGL_J1418.4+3543_daily_bin1299.fits outfile=/scratch/kocevski/322041/expmap_576028801_576288001_4FGL_J1418.4+3543_daily_bin1299.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/322041/ltcube_576028801_576288001_4FGL_J1418.4+3543_daily_bin1299.fits
.....................!
real 191.24
user 186.24
sys 4.65

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/322041/ft1_filtered_4FGL_J1418.4+3543_daily_bin1299.fits scfile=/scratch/kocevski/322041/ft2_4FGL_J1418.4+3543_daily_bin1299.fits outfile=/scratch/kocevski/322041/cmap_576028801_576288001_4FGL_J1418.4+3543_daily_bin1299.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/322041/ft1_filtered_4FGL_J1418.4+3543_daily_bin1299.fits scfile=/scratch/kocevski/322041/ft2_4FGL_J1418.4+3543_daily_bin1299.fits outfile=/scratch/kocevski/322041/cmap_HighResolution_576028801_576288001_4FGL_J1418.4+3543_daily_bin1299.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.552       1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.751       1.0000         .10000E-03   10000.    
     4 'norm      '    14.981       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .83491E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.646       1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10414E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.4031       1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.606       1.0000         .10000E-03   10000.    
    13 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .12883E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11510E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.6819       1.0000         .10000E-03   10000.    
    18 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .85465       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .31480E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .97815       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0417       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=   6296.158     FROM MIGRAD    STATUS=CONVERGED    588 CALLS     2370 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.123        .41077E-06** at limit **
   2  Prefactor     18.578        21.125        .68028E-06    .75604E-04
   3  Prefactor     25.595        54.519       -.30438E-05    .40007E-05
   4  norm          14.982        2.7495       -.32462E-07    .34533E-04
   5  Prefactor     .74426E-01    2.4519       -.10279E-05    .82978E-03
   6  norm          .10000E-03    7.5891        .42196E-08** at limit **
   7  Prefactor     .10000E-03    36.820        .28144E-05** at limit **
   8  Prefactor     12.618        22.024        .21030E-05   -.16004E-04
   9  norm          .10000E-03    1.6848       -.57772E-07** at limit **
  10  Prefactor     .10000E-03    7.8229        .40316E-07** at limit **
  11  Prefactor     5.3999        14.068       -.10024E-05   -.89183E-04
  12  Prefactor     21.607        5.5456       -.89900E-07    .12581E-03
  13  norm          .10000E-03    4.6776        .38810E-07** at limit **
  14  Prefactor     .10000E-03    6.5869        .19356E-07** at limit **
  15  norm          .10000E-03    4.5528        .15621E-07** at limit **
  16  Prefactor     .10000E-03    32.464       -.23077E-05** at limit **
  17  Prefactor     4.6839        40.034       -.19242E-05   -.21519E-04
  18  norm          .10000E-03    3.3513       -.51541E-08** at limit **
  19  Prefactor     .10000E-03    14.983       -.99780E-07** at limit **
  20  Prefactor     .10000E-03    5.1702        .96352E-07** at limit **
  21  norm          .85283        1.5839       -.49366E-06   -.16095E-02
  22  Prefactor     .10000E-03    167.98        .42206E-04** at limit **
  23  Normalizat    .97763        .18455        .62485E-06    .16564E-03
  24  Prefactor     1.0425        .19329       -.67707E-07    .12849E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 18.5776
  Prefactor  = 25.5954
  norm       = 14.9823
  Prefactor  = 0.0744256
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.6177
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.39986
  Prefactor  = 21.6068
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.68391
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.852829
  Prefactor  = 0.0001
  Normalizat = 0.977634
  Prefactor  = 1.04249
 **********
 **   18 **HESSE 
 **********

 FCN=   6296.158     FROM HESSE     STATUS=OK           399 CALLS     2769 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     18.578        21.162        .92988E-04   -1.4846    
   3  Prefactor     25.595        54.755        .78941E-04   -1.4696    
   4  norm          14.982        2.7593        .54009E-04   -1.4934    
   5  Prefactor     .74426E-01    77.119        .22772E-02   -1.5653    
   6  norm          .10000E-03    7.6121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    37.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.618        22.054        .11264E-03   -1.4997    
   9  norm          .10000E-03    1.7083        .10055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.8298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.3999        14.181        .17288E-03   -1.5243    
  12  Prefactor     21.607        5.5588        .86170E-04   -1.4778    
  13  norm          .10000E-03    4.6800        .16760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.5899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    12.180        .32392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    32.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.6839        40.337        .18598E-03   -1.5275    
  18  norm          .10000E-03    3.3539        .14186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    15.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.2052        .17589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .85283        1.6250        .13141E-03   -1.5523    
  22  Prefactor     .10000E-03    163.40        .21369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .97763        .22901        .24533E-03   -.93784    
  24  Prefactor     1.0425        .23600        .27186E-03   -.91326    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18985e-08
Minuit parameter uncertainties:
  1  1.1725e-06
  2  21.1702
  3  54.863
  4  2.75928
  5  4.79449
  6  2.09097e-07
  7  1.21658e-05
  8  22.068
  9  4.05527e-07
  10  1.44291e-05
  11  14.1896
  12  5.55894
  13  9.38837e-07
  14  1.5838e-06
  15  2.765e-05
  16  5.49201e-06
  17  27.5155
  18  4.90934e-07
  19  1.40072e-05
  20  1.32932e-05
  21  1.62509
  22  1.55638e-05
  23  0.229237
  24  0.236237
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.000e-04  4.055e-07  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.042e+00  2.362e-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.776e-01  2.292e-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.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.36e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/322041/likelihoodResults_576028801_576288001_4FGL_J1418.4+3543_daily_bin1299.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) = 6296.16059293
delta logL = -0.00277472781181

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6296.1578182
delta logL = 1.02736521512e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0067       1.0000          .0000       5.0000    
     3 'Normalizat'    .97765       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0425       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=   6296.158     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      234 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    388.89        .10088E-02** at limit **
   2  alpha         1.8750        3.2212        .16885       -.14005E-07
   3  Normalizat    .97763        .12137        .24533E-03   -.53848E-04
   4  Prefactor     1.0425        .13905        .27186E-03   -.48634E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.87498
  Normalizat = 0.977633
  Prefactor  = 1.04249
 **********
 **   18 **HESSE 
 **********

 FCN=   6296.158     FROM HESSE     STATUS=OK            27 CALLS      261 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.7720        .20175E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8750        2.7315        .67540E-01   -.25269    
   3  Normalizat    .97763        .20222        .98132E-05   -.93784    
   4  Prefactor     1.0425        .23162        .10874E-04   -.91326    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64536e-11
Minuit parameter uncertainties:
  1  1.6623e-05
  2  112.367
  3  0.202379
  4  0.231838
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/322041': 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) = 6296.15781743
delta logL = 7.78304638516e-07

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.000e-04  1.662e-05  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  1.875e+00  1.124e+02  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.042e+00  2.318e-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.776e-01  2.024e-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/322041/cmap_HighResolution_576028801_576288001_4FGL_J1418.4+3543_daily_bin1299.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.36e-05', job_status='DONE', photon_flux_upper_limit='4.14e-08', time_completed='2021-09-09 08:36:41.228943', job_id='322041', GAL2='1.04', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1631201801.23', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='7.78e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='1299' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:36:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 322041: <4FGL_J1418.4+3543_daily_bin1299> in cluster <slac> Done

Job <4FGL_J1418.4+3543_daily_bin1299> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  9 08:20:41 2021
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 08:20:43 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:20:43 2021
Terminated at Thu Sep  9 08:36:41 2021
Results reported at Thu Sep  9 08:36:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin1299 214.623 35.7192 576028801 576288001 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 :                                   659.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   958 sec.
    Turnaround time :                            960 sec.

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

