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


Performing analysis on: 4FGL_J1418.4+3543_daily_bin525
RA = 214.623, Dec = 35.7192
tmin = 375408001, tmax = 375667201
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='317435', job_status='RUN', time_executed='2021-09-09 08:05:50.698032', time_epoch_executed='1631199950.7' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='525'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/317435

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/317435/ft1_4FGL_J1418.4+3543_daily_bin525.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/317435/ft2_4FGL_J1418.4+3543_daily_bin525.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/317435/ft1_4FGL_J1418.4+3543_daily_bin525.fits outfile=/scratch/kocevski/317435/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin525.fits ra=214.623 dec=35.7192 rad=12.0 tmin=375408001.0 tmax=375667201.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.48
user 3.23
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/317435/ft2_4FGL_J1418.4+3543_daily_bin525.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/317435/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin525.fits evtable="EVENTS" outfile="/scratch/kocevski/317435/ft1_filtered_4FGL_J1418.4+3543_daily_bin525.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/317435/ft1_filtered_4FGL_J1418.4+3543_daily_bin525.fits" evtable="EVENTS" scfile=/scratch/kocevski/317435/ft2_4FGL_J1418.4+3543_daily_bin525.fits sctable="SC_DATA" outfile=/scratch/kocevski/317435/ltcube_375408001_375667201_4FGL_J1418.4+3543_daily_bin525.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/317435/ft2_4FGL_J1418.4+3543_daily_bin525.fits
.....................!
real 12.40
user 12.01
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/317435/ft1_filtered_4FGL_J1418.4+3543_daily_bin525.fits evtable="EVENTS" scfile=/scratch/kocevski/317435/ft2_4FGL_J1418.4+3543_daily_bin525.fits sctable="SC_DATA" expcube=/scratch/kocevski/317435/ltcube_375408001_375667201_4FGL_J1418.4+3543_daily_bin525.fits outfile=/scratch/kocevski/317435/expmap_375408001_375667201_4FGL_J1418.4+3543_daily_bin525.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/317435/ltcube_375408001_375667201_4FGL_J1418.4+3543_daily_bin525.fits
.....................!
real 191.11
user 185.72
sys 4.97

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/317435/ft1_filtered_4FGL_J1418.4+3543_daily_bin525.fits scfile=/scratch/kocevski/317435/ft2_4FGL_J1418.4+3543_daily_bin525.fits outfile=/scratch/kocevski/317435/cmap_375408001_375667201_4FGL_J1418.4+3543_daily_bin525.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.55
user 0.37
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.6482       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.979       1.0000         .10000E-03   10000.    
     4 'norm      '    9.6291       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.0189       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.727       1.0000         .10000E-03   10000.    
     9 'norm      '    7.3932       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.5508       1.0000         .10000E-03   10000.    
    13 'norm      '    3.9136       1.0000         .10000E-03   10000.    
    14 'Prefactor '    98.044       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    35.028       1.0000         .10000E-03   10000.    
    17 'Prefactor '    52.794       1.0000         .10000E-03   10000.    
    18 'norm      '    5.0507       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.7848       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.000       1.0000         .10000E-03   10000.    
    21 'norm      '    .98462       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0828       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .88513       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=   6444.687     FROM MIGRAD    STATUS=CONVERGED    528 CALLS     2712 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.198        .30795E-07** at limit **
   2  Prefactor     6.6508        15.789        .54136E-07    .11584E-05
   3  Prefactor     12.087        111.65       -.22293E-04    .20850E-05
   4  norm          9.6297        2.4183        .72842E-07    .56926E-04
   5  Prefactor     6.0208        4.6712        .28973E-06    .64527E-05
   6  norm          .10000E-03    6.6294        .49584E-07** at limit **
   7  Prefactor     .10000E-03    6.8409       -.22738E-06** at limit **
   8  Prefactor     12.735        18.266        .79483E-07    .26949E-05
   9  norm          7.3941        4.3830       -.14649E-06    .21249E-04
  10  Prefactor     .10000E-03    7.1417        .13128E-06** at limit **
  11  Prefactor     .10000E-03    5.6277        .28967E-07** at limit **
  12  Prefactor     2.5535        4.8137        .32638E-06   -.96213E-06
  13  norm          3.9133        6.7852       -.10182E-06    .49606E-05
  14  Prefactor     98.049        37.524        .11920E-07    .32788E-05
  15  norm          .10000E-03    1.7743       -.40961E-08** at limit **
  16  Prefactor     35.033        33.568       -.38245E-06    .36584E-05
  17  Prefactor     52.803        40.280       -.69997E-06    .69233E-05
  18  norm          5.0507        5.0066       -.82886E-07   -.31917E-05
  19  Prefactor     1.7852        24.540        .78339E-05    .27750E-04
  20  Prefactor     11.004        12.969       -.24404E-06    .60939E-05
  21  norm          .98455        2.4950        .54507E-07   -.97050E-04
  22  Prefactor     .10000E-03    66.096       -.28492E-06** at limit **
  23  Normalizat    1.0821        .19374       -.19850E-05    .62569E-04
  24  Prefactor     .88579        .19503        .31686E-05   -.13192E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.65076
  Prefactor  = 12.087
  norm       = 9.62968
  Prefactor  = 6.02079
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.7348
  norm       = 7.39411
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.55351
  norm       = 3.91331
  Prefactor  = 98.0488
  norm       = 0.0001
  Prefactor  = 35.0327
  Prefactor  = 52.8032
  norm       = 5.05069
  Prefactor  = 1.78517
  Prefactor  = 11.0039
  norm       = 0.984554
  Prefactor  = 0.0001
  Normalizat = 1.08209
  Prefactor  = 0.885793
 **********
 **   18 **HESSE 
 **********

 FCN=   6444.687     FROM HESSE     STATUS=OK           403 CALLS     3115 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.6508        15.782        .15563E-03   -1.5192    
   3  Prefactor     12.087        114.06        .11574E-03   -1.5012    
   4  norm          9.6297        2.4207        .60082E-04   -1.5087    
   5  Prefactor     6.0208        4.6788        .14409E-03   -1.5217    
   6  norm          .10000E-03    6.6799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.8514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.735        18.303        .11228E-03   -1.4994    
   9  norm          7.3941        4.3786        .12358E-03   -1.5164    
  10  Prefactor     .10000E-03    7.1886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.6367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.5535        4.8081        .22090E-03   -1.5388    
  13  norm          3.9133        6.7715        .20394E-03   -1.5312    
  14  Prefactor     98.049        37.661        .40597E-04   -1.3724    
  15  norm          .10000E-03    1.7782        .10442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     35.033        33.572        .67711E-04   -1.4524    
  17  Prefactor     52.803        40.363        .55200E-04   -1.4253    
  18  norm          5.0507        5.0130        .17421E-03   -1.5258    
  19  Prefactor     1.7852        25.221        .15660E-02   -1.5441    
  20  Prefactor     11.004        12.094        .12080E-03   -1.5044    
  21  norm          .98455        2.2841        .14040E-03   -1.5510    
  22  Prefactor     .10000E-03    66.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0821        .22951        .24547E-03   -.90329    
  24  Prefactor     .88579        .22992        .29455E-03   -.96639    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.64871e-11
Minuit parameter uncertainties:
  1  1.85322e-05
  2  15.7923
  3  74.4456
  4  2.42073
  5  4.67906
  6  1.17418e-05
  7  8.71394e-07
  8  18.3113
  9  4.37883
  10  8.69469e-07
  11  1.01414e-06
  12  4.80882
  13  6.7728
  14  37.6706
  15  1.30465e-06
  16  33.5898
  17  40.3843
  18  5.01339
  19  13.4265
  20  12.0968
  21  2.28427
  22  3.43096e-05
  23  0.229722
  24  0.23017
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  7.394e+00  4.379e+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:  8.858e-01  2.302e-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.082e+00  2.297e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.85
Ra Dec: 214.623 35.719
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 4.49e-08 +/- 2.66e-08
Energy Flux (Fixed Index): 2.56e-05 +/- 1.51e-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) = 6443.7605447
delta logL = 0.926355917643

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6443.75528039
delta logL = 0.931620224495

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.7242       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7918       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0135       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93232       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=   6443.755     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      240 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.7242        46.254        .41971E-02    .40891E-03
   2  alpha         2.7918        3.8944        .26712        .59432E-04
   3  Normalizat    1.0135        .94717E-01    .44552E-01    .11728E-04
   4  Prefactor     .93233        .79197E-01    .65057E-01    .14249E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.72419
  alpha      = 2.79179
  Normalizat = 1.01351
  Prefactor  = 0.932331
 **********
 **   18 **HESSE 
 **********

 FCN=   6443.755     FROM HESSE     STATUS=OK            33 CALLS      273 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.7242        4.1947        .87150E-04   -1.5229    
   2  alpha         2.7918        .60287        .10411E-01    .11698    
   3  Normalizat    1.0135        .21685        .25231E-03   -.92579    
   4  Prefactor     .93233        .23261        .28774E-03   -.95020    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.07114e-09
Minuit parameter uncertainties:
  1  4.19495
  2  0.608959
  3  0.217039
  4  0.232858
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/317435': 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) = 6443.75528036
delta logL = 0.931620248324

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  5.724e+00  4.195e+00  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  2.792e+00  6.090e-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:  9.323e-01  2.329e-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.014e+00  2.170e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.75
Ra Dec: 214.623 35.719
Photon Index (Free Index): 2.79 +/- 0.61
Photon Flux (Free Index): 9.83e-08 +/- 5.95e-08
Energy Flux (Free Index): 2.31e-05 +/- 1.11e-05

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/317435/cmap_HighResolution_375408001_375667201_4FGL_J1418.4+3543_daily_bin525.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.49e-08', energy_flux2='2.31e-05', photon_flux_error='2.66e-08', dlogl='9.32e-01', energy_flux='2.56e-05', photon_flux2='9.83e-08', job_status='DONE', time_completed='2021-09-09 08:16:07.582424', photon_index_error2='0.61', photon_index2='2.79', ts='6.85', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='1.11e-05', EG='1.08', time_epoch_completed='1631200567.58', return_code='0', job_id='317435', GAL2='0.93', EG2='1.01', return_code2='0', energy_flux_error='1.51e-05', photon_flux_error2='5.95e-08', ts2='8.75', photon_index='2.02' WHERE bin_id='525' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:16:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 317435: <4FGL_J1418.4+3543_daily_bin525> in cluster <slac> Done

Job <4FGL_J1418.4+3543_daily_bin525> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Sep  9 08:05:39 2021
Job was executed on host(s) <bullet0274>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 08:05:40 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:05:40 2021
Terminated at Thu Sep  9 08:16:08 2021
Results reported at Thu Sep  9 08:16:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin525 214.623 35.7192 375408001 375667201 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 :                                   613.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   627 sec.
    Turnaround time :                            629 sec.

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

