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


Performing analysis on: 4FGL_J1418.4+3543_daily_bin1470
RA = 214.623, Dec = 35.7192
tmin = 620352001, tmax = 620611201
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='323451', job_status='RUN', time_executed='2021-09-09 08:28:39.800730', time_epoch_executed='1631201319.8' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='1470'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/323451

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/323451/ft1_4FGL_J1418.4+3543_daily_bin1470.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/323451/ft2_4FGL_J1418.4+3543_daily_bin1470.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/323451/ft1_4FGL_J1418.4+3543_daily_bin1470.fits outfile=/scratch/kocevski/323451/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1470.fits ra=214.623 dec=35.7192 rad=12.0 tmin=620352001.0 tmax=620611201.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.85
user 4.63
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/323451/ft1_filtered_4FGL_J1418.4+3543_daily_bin1470.fits evtable="EVENTS" scfile=/scratch/kocevski/323451/ft2_4FGL_J1418.4+3543_daily_bin1470.fits sctable="SC_DATA" expcube=/scratch/kocevski/323451/ltcube_620352001_620611201_4FGL_J1418.4+3543_daily_bin1470.fits outfile=/scratch/kocevski/323451/expmap_620352001_620611201_4FGL_J1418.4+3543_daily_bin1470.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/323451/ltcube_620352001_620611201_4FGL_J1418.4+3543_daily_bin1470.fits
.....................!
real 190.11
user 185.65
sys 4.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/323451/ft1_filtered_4FGL_J1418.4+3543_daily_bin1470.fits scfile=/scratch/kocevski/323451/ft2_4FGL_J1418.4+3543_daily_bin1470.fits outfile=/scratch/kocevski/323451/cmap_620352001_620611201_4FGL_J1418.4+3543_daily_bin1470.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/323451/ft1_filtered_4FGL_J1418.4+3543_daily_bin1470.fits scfile=/scratch/kocevski/323451/ft2_4FGL_J1418.4+3543_daily_bin1470.fits outfile=/scratch/kocevski/323451/cmap_HighResolution_620352001_620611201_4FGL_J1418.4+3543_daily_bin1470.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.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.4620       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .86540E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.422       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    29.661       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    38.433       1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.240       1.0000         .10000E-03   10000.    
    18 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.3024       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .32366E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.8443       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0861       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .65511       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=   4920.868     FROM MIGRAD    STATUS=CONVERGED    552 CALLS     2733 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.651        .39420E-07** at limit **
   2  Prefactor     .10001E-03    42.128       -.16191E-06** at limit **
   3  Prefactor     .10000E-03    72.566       -.27371E-06** at limit **
   4  norm          1.4619        1.1898        .34349E-07    .10663E-03
   5  Prefactor     .10000E-03    1.6276       -.53921E-07** at limit **
   6  norm          .10000E-03    6.3373       -.93631E-07** at limit **
   7  Prefactor     .10000E-03    5.3858       -.49512E-08** at limit **
   8  Prefactor     .10000E-03    5.8828        .13738E-07** at limit **
   9  norm          .10000E-03    1.5733       -.35310E-07** at limit **
  10  Prefactor     .10002E-03    146.85       -.15807E-04** at limit **
  11  Prefactor     .10000E-03    30.545       -.33436E-06** at limit **
  12  Prefactor     15.422        4.7344        .25587E-08   -.24113E-03
  13  norm          .10000E-03    6.9580        .48903E-07** at limit **
  14  Prefactor     29.663        26.199        .27086E-07    .12178E-03
  15  norm          .10000E-03    1.6225       -.42385E-07** at limit **
  16  Prefactor     38.436        36.523        .10040E-06    .75545E-04
  17  Prefactor     17.227        30.438       -.27636E-06    .90114E-04
  18  norm          .10000E-03    8.0320       -.61783E-06** at limit **
  19  Prefactor     5.3124        13.778        .12894E-05    .50928E-03
  20  Prefactor     .10000E-03    15.857       -.78782E-05** at limit **
  21  norm          1.8462        1.4183        .24442E-06    .33158E-02
  22  Prefactor     .10000E-03    20.947       -.93066E-07** at limit **
  23  Normalizat    1.0860        .16443        .16118E-06    .57720E-03
  24  Prefactor     .65519        .18413       -.24336E-06    .35747E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  norm       = 1.46191
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100018
  Prefactor  = 0.000100004
  Prefactor  = 15.4223
  norm       = 0.0001
  Prefactor  = 29.6632
  norm       = 0.0001
  Prefactor  = 38.436
  Prefactor  = 17.2265
  norm       = 0.0001
  Prefactor  = 5.31236
  Prefactor  = 0.000100001
  norm       = 1.84622
  Prefactor  = 0.0001
  Normalizat = 1.08602
  Prefactor  = 0.655192
 **********
 **   18 **HESSE 
 **********

 FCN=   4920.868     FROM HESSE     STATUS=OK           397 CALLS     3130 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    42.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    72.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.4619        1.1759        .66810E-04   -1.5466    
   5  Prefactor     .10000E-03    1.6454        .87375E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.3587        .17250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.3874        .15899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.8900        .16617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.5887        .85897E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10002E-03    11.366        .64090E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    31.100        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     15.422        4.7489        .81168E-04   -1.4922    
  13  norm          .10000E-03    6.9777        .18072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     29.663        26.250        .73566E-04   -1.4618    
  15  norm          .10000E-03    1.6270        .87256E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     38.436        36.531        .64652E-04   -1.4467    
  17  Prefactor     17.227        30.496        .96462E-04   -1.4878    
  18  norm          .10000E-03    8.2257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.3124        13.864        .17454E-03   -1.5247    
  20  Prefactor     .10000E-03    15.784        .33735E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.8462        1.4162        .70004E-04   -1.5436    
  22  Prefactor     .10000E-03    20.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0860        .19300        .19630E-03   -.90202    
  24  Prefactor     .65519        .21427        .28287E-03   -1.0531    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3133e-09
Minuit parameter uncertainties:
  1  6.00588e-05
  2  0.00138879
  3  0.000194887
  4  1.17589
  5  8.324e-06
  6  2.54206e-05
  7  1.62853e-06
  8  1.00727e-05
  9  7.82907e-06
  10  0.000908907
  11  0.000662737
  12  4.74905
  13  3.20778e-05
  14  26.2606
  15  2.89764e-06
  16  36.5524
  17  30.5232
  18  4.42116e-05
  19  13.8723
  20  0.000244743
  21  1.41622
  22  1.99659e-05
  23  0.19312
  24  0.214535
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.000e-04  7.829e-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:  6.552e-01  2.145e-01  0.000e+00  1.000e+01 ( 1.000e+00)
576        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
577        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
574   Normalization:  1.086e+00  1.931e-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.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.35e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/323451/likelihoodResults_620352001_620611201_4FGL_J1418.4+3543_daily_bin1470.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) = 4920.87129615
delta logL = -0.0029687795859

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4920.81015898
delta logL = 0.0581683935507

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .73811E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.2610       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0674       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66793       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4920.810     FROM MIGRAD    STATUS=FAILED        87 CALLS      321 TOTAL
                     EDM=   .46E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .73874E-01    29.304        .48039E-03   -.13559E-02
   2  alpha         4.2608        2.8528        .61880E-01    .16753E-03
   3  Normalizat    1.0674        .10075        .19773E-03   -.13156E-03
   4  Prefactor     .66786        .11454        .28035E-03   -.24534E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4920.810     FROM SIMPLEX   STATUS=UNCHANGED     95 CALLS      416 TOTAL
                     EDM=   .82E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .73874E-01    29.304        .35828E-04   -.13559E-02
   2  alpha         4.2608        2.8528        .36621E-02    .16753E-03
   3  Normalizat    1.0674        .10075        .10209E-03   -.13156E-03
   4  Prefactor     .66786        .11454        .73570E-04   -.24534E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4920.810     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      447 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .73878E-01    1.5810        .19215E-04   -.14892E-02
   2  alpha         4.2607        4.5246        .12376E-01   -.15728E-04
   3  Normalizat    1.0674        .19360        .39547E-04   -.12114E-03
   4  Prefactor     .66786        .21698        .11214E-04   -.20073E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0738782
  alpha      = 4.26072
  Normalizat = 1.06742
  Prefactor  = 0.667861
 **********
 **   18 **HESSE 
 **********

 FCN=   4920.810     FROM HESSE     STATUS=OK            23 CALLS      470 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .73878E-01    .80398        .76862E-06   -1.5654    
   2  alpha         4.2607        4.5406        .49504E-03    .78142    
   3  Normalizat    1.0674        .19364        .79094E-05   -.90805    
   4  Prefactor     .66786        .21690        .22428E-05   -1.0480    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02262e-10
Minuit parameter uncertainties:
  1  0.487105
  2  3.498
  3  0.193772
  4  0.217174
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/323451': 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) = 4920.81015889
delta logL = 0.0581684836416

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  7.388e-02  4.871e-01  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  4.261e+00  3.498e+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:  6.679e-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:  1.067e+00  1.938e-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/323451/cmap_HighResolution_620352001_620611201_4FGL_J1418.4+3543_daily_bin1470.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.35e-05', job_status='DONE', photon_flux_upper_limit='4.13e-08', time_completed='2021-09-09 08:39:08.480849', job_id='323451', GAL2='0.67', fit_tolerance='1e-08', EG2='1.07', EG='1.09', time_epoch_completed='1631201948.48', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='5.82e-02', ts2='0.13', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='1470' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:39:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 323451: <4FGL_J1418.4+3543_daily_bin1470> in cluster <slac> Done

Job <4FGL_J1418.4+3543_daily_bin1470> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Thu Sep  9 08:25:19 2021
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 08:25:20 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:20 2021
Terminated at Thu Sep  9 08:39:09 2021
Results reported at Thu Sep  9 08:39:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin1470 214.623 35.7192 620352001 620611201 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 :                                   621.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             265.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            830 sec.

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

