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


Performing analysis on: 4FGL_J1418.4+3543_daily_bin1526
RA = 214.623, Dec = 35.7192
tmin = 634867201, tmax = 635126401
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='323533', job_status='RUN', time_executed='2021-09-09 08:28:42.315174', time_epoch_executed='1631201322.32' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='1526'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/323533

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/323533/ft1_4FGL_J1418.4+3543_daily_bin1526.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/323533/ft2_4FGL_J1418.4+3543_daily_bin1526.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/323533/ft1_4FGL_J1418.4+3543_daily_bin1526.fits outfile=/scratch/kocevski/323533/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1526.fits ra=214.623 dec=35.7192 rad=12.0 tmin=634867201.0 tmax=635126401.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.04
user 2.83
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/323533/ft2_4FGL_J1418.4+3543_daily_bin1526.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/323533/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1526.fits evtable="EVENTS" outfile="/scratch/kocevski/323533/ft1_filtered_4FGL_J1418.4+3543_daily_bin1526.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.50
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/323533/ft1_filtered_4FGL_J1418.4+3543_daily_bin1526.fits" evtable="EVENTS" scfile=/scratch/kocevski/323533/ft2_4FGL_J1418.4+3543_daily_bin1526.fits sctable="SC_DATA" outfile=/scratch/kocevski/323533/ltcube_634867201_635126401_4FGL_J1418.4+3543_daily_bin1526.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/323533/ft2_4FGL_J1418.4+3543_daily_bin1526.fits
.....................!
real 12.39
user 12.01
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/323533/ft1_filtered_4FGL_J1418.4+3543_daily_bin1526.fits evtable="EVENTS" scfile=/scratch/kocevski/323533/ft2_4FGL_J1418.4+3543_daily_bin1526.fits sctable="SC_DATA" expcube=/scratch/kocevski/323533/ltcube_634867201_635126401_4FGL_J1418.4+3543_daily_bin1526.fits outfile=/scratch/kocevski/323533/expmap_634867201_635126401_4FGL_J1418.4+3543_daily_bin1526.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/323533/ltcube_634867201_635126401_4FGL_J1418.4+3543_daily_bin1526.fits
.....................!
real 190.77
user 185.46
sys 4.96

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/323533/ft1_filtered_4FGL_J1418.4+3543_daily_bin1526.fits scfile=/scratch/kocevski/323533/ft2_4FGL_J1418.4+3543_daily_bin1526.fits outfile=/scratch/kocevski/323533/cmap_634867201_635126401_4FGL_J1418.4+3543_daily_bin1526.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/323533/ft1_filtered_4FGL_J1418.4+3543_daily_bin1526.fits scfile=/scratch/kocevski/323533/ft2_4FGL_J1418.4+3543_daily_bin1526.fits outfile=/scratch/kocevski/323533/cmap_HighResolution_634867201_635126401_4FGL_J1418.4+3543_daily_bin1526.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.962       1.0000         .10000E-03   10000.    
     4 'norm      '    3.6993       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.1950       1.0000         .10000E-03   10000.    
     9 'norm      '    9.4470       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .33455       1.0000         .10000E-03   10000.    
    13 'norm      '    .26750E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.603       1.0000         .10000E-03   10000.    
    15 'norm      '    .31078       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.6554       1.0000         .10000E-03   10000.    
    18 'norm      '    2.6450       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .92583       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10312E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1532       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .99981       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=   7242.736     FROM MIGRAD    STATUS=CONVERGED    553 CALLS     2425 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.316        .42728E-06** at limit **
   2  Prefactor     .10000E-03    9.2018        .40790E-06** at limit **
   3  Prefactor     21.917        61.183        .42574E-05    .10920E-03
   4  norm          3.6983        1.7286       -.53685E-07    .10040E-03
   5  Prefactor     .10000E-03    2.5001       -.62143E-06** at limit **
   6  norm          .10000E-03    5.0984        .75470E-07** at limit **
   7  Prefactor     .10000E-03    30.558       -.16186E-05** at limit **
   8  Prefactor     7.1629        18.517       -.42799E-06    .28108E-04
   9  norm          9.4429        5.2555       -.76420E-07    .65268E-03
  10  Prefactor     .10000E-03    10.296       -.59672E-06** at limit **
  11  Prefactor     .10000E-03    8.7228       -.58321E-06** at limit **
  12  Prefactor     .32761        2.9690       -.23302E-05   -.13080E-03
  13  norm          .10005E-03    52.370       -.12259E-04** at limit **
  14  Prefactor     28.600        21.854       -.23700E-07    .93323E-04
  15  norm          .31040        2.8974       -.50356E-06    .30440E-03
  16  Prefactor     .10000E-03    20.166       -.97596E-07** at limit **
  17  Prefactor     8.6493        31.247        .16149E-05    .77931E-04
  18  norm          2.6495        5.7203       -.34419E-06    .22210E-04
  19  Prefactor     .90663        11.626       -.22766E-05    .46402E-04
  20  Prefactor     .10000E-03    2.2610       -.13059E-06** at limit **
  21  norm          .10000E-03    .52001        .14488E-06** at limit **
  22  Prefactor     .10000E-03    41.572       -.14490E-05** at limit **
  23  Normalizat    1.1545        .19138        .32057E-06    .11353E-02
  24  Prefactor     .99853        .20370        .16856E-05    .46647E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.9175
  norm       = 3.69834
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.16288
  norm       = 9.44295
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.327614
  norm       = 0.000100051
  Prefactor  = 28.6003
  norm       = 0.310401
  Prefactor  = 0.0001
  Prefactor  = 8.64932
  norm       = 2.64954
  Prefactor  = 0.906633
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.15451
  Prefactor  = 0.998528
 **********
 **   18 **HESSE 
 **********

 FCN=   7242.736     FROM HESSE     STATUS=OK           401 CALLS     2826 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.2708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     21.917        61.334        .85470E-04   -1.4771    
   4  norm          3.6983        1.7289        .73671E-04   -1.5323    
   5  Prefactor     .10000E-03    2.5739        .13186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.1106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    31.826        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.1629        18.635        .14954E-03   -1.5173    
   9  norm          9.4429        5.1275        .13039E-03   -1.5093    
  10  Prefactor     .10000E-03    10.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.7958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .32761        6.8958        .20642E-02   -1.5594    
  13  norm          .10005E-03    69.053        .54238E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     28.600        21.869        .74911E-04   -1.4638    
  15  norm          .31040        18.626        .26689E-02   -1.5597    
  16  Prefactor     .10000E-03    20.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.6493        31.072        .13625E-03   -1.5120    
  18  norm          2.6495        5.6747        .25068E-03   -1.5382    
  19  Prefactor     .90663        43.842        .48796E-02   -1.5518    
  20  Prefactor     .10000E-03    2.2722        .12490E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    4.5712        .11539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    41.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1545        .20699        .22441E-03   -.88020    
  24  Prefactor     .99853        .21348        .27237E-03   -.92779    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91703e-08
Minuit parameter uncertainties:
  1  5.69478e-05
  2  3.91939e-05
  3  61.5114
  4  1.72896
  5  2.45715e-05
  6  4.99982e-06
  7  0.000241606
  8  18.6496
  9  5.12771
  10  4.53114e-05
  11  4.36371e-05
  12  3.00604
  13  0.00376178
  14  21.8746
  15  4.80976
  16  5.92092e-06
  17  31.1305
  18  5.67588
  19  12.6184
  20  5.31465e-06
  21  2.36632e-05
  22  0.000313622
  23  0.207138
  24  0.213658
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  9.443e+00  5.128e+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:  9.985e-01  2.137e-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.155e+00  2.071e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.85
Ra Dec: 214.623 35.719
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 5.74e-08 +/- 3.11e-08
Energy Flux (Fixed Index): 3.27e-05 +/- 1.77e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7241.70874312
delta logL = 1.02700509775

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7241.68051958
delta logL = 1.05522863898

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.8624       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6967       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0899       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0459       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=   7241.681     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      294 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.8617        5.2627        .91331E-04    .17464E-02
   2  alpha         2.6967        .57040        .92509E-02    .17027E-03
   3  Normalizat    1.0899        .19195        .22983E-03   -.30145E-03
   4  Prefactor     1.0460        .21445        .26693E-03   -.48584E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.86171
  alpha      = 2.69666
  Normalizat = 1.08987
  Prefactor  = 1.046
 **********
 **   18 **HESSE 
 **********

 FCN=   7241.681     FROM HESSE     STATUS=OK            25 CALLS      319 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.8617        4.8205        .36532E-05   -1.5184    
   2  alpha         2.6967        .52252        .37004E-03    .78747E-01
   3  Normalizat    1.0899        .19140        .45966E-04   -.90078    
   4  Prefactor     1.0460        .21388        .53386E-04   -.91212    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.71288e-10
Minuit parameter uncertainties:
  1  4.82075
  2  0.526424
  3  0.191524
  4  0.214057
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/323533': 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) = 7241.68051931
delta logL = 1.05522890699

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  6.862e+00  4.821e+00  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  2.697e+00  5.264e-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.046e+00  2.141e-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.090e+00  1.915e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.04
Ra Dec: 214.623 35.719
Photon Index (Free Index): 2.70 +/- 0.53
Photon Flux (Free Index): 1.02e-07 +/- 5.04e-08
Energy Flux (Free Index): 2.56e-05 +/- 1.19e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/323533/cmap_HighResolution_634867201_635126401_4FGL_J1418.4+3543_daily_bin1526.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.74e-08', energy_flux2='2.56e-05', photon_flux_error='3.11e-08', dlogl='1.06e+00', energy_flux='3.27e-05', photon_flux2='1.02e-07', job_status='DONE', time_completed='2021-09-09 08:39:22.793843', photon_index_error2='0.53', photon_index2='2.70', ts='5.85', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='1.19e-05', EG='1.15', time_epoch_completed='1631201962.79', return_code='0', job_id='323533', GAL2='1.05', EG2='1.09', return_code2='0', energy_flux_error='1.77e-05', photon_flux_error2='5.04e-08', ts2='8.04', photon_index='2.02' WHERE bin_id='1526' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:39:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 323533: <4FGL_J1418.4+3543_daily_bin1526> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin1526 214.623 35.7192 634867201 635126401 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 :                                   632.35 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             278.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            838 sec.

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

