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


Performing analysis on: 4FGL_J1418.4+3543_daily_bin1551
RA = 214.623, Dec = 35.7192
tmin = 641347201, tmax = 641606401
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='323569', job_status='RUN', time_executed='2021-09-09 08:25:46.197395', time_epoch_executed='1631201146.2' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='1551'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/323569

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/323569/ft1_4FGL_J1418.4+3543_daily_bin1551.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/323569/ft2_4FGL_J1418.4+3543_daily_bin1551.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/323569/ft1_4FGL_J1418.4+3543_daily_bin1551.fits outfile=/scratch/kocevski/323569/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1551.fits ra=214.623 dec=35.7192 rad=12.0 tmin=641347201.0 tmax=641606401.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 2.80
user 2.58
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/323569/ft1_filtered_4FGL_J1418.4+3543_daily_bin1551.fits evtable="EVENTS" scfile=/scratch/kocevski/323569/ft2_4FGL_J1418.4+3543_daily_bin1551.fits sctable="SC_DATA" expcube=/scratch/kocevski/323569/ltcube_641347201_641606401_4FGL_J1418.4+3543_daily_bin1551.fits outfile=/scratch/kocevski/323569/expmap_641347201_641606401_4FGL_J1418.4+3543_daily_bin1551.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/323569/ltcube_641347201_641606401_4FGL_J1418.4+3543_daily_bin1551.fits
.....................!
real 190.29
user 185.29
sys 4.57

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/323569/ft1_filtered_4FGL_J1418.4+3543_daily_bin1551.fits scfile=/scratch/kocevski/323569/ft2_4FGL_J1418.4+3543_daily_bin1551.fits outfile=/scratch/kocevski/323569/cmap_641347201_641606401_4FGL_J1418.4+3543_daily_bin1551.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/323569/ft1_filtered_4FGL_J1418.4+3543_daily_bin1551.fits scfile=/scratch/kocevski/323569/ft2_4FGL_J1418.4+3543_daily_bin1551.fits outfile=/scratch/kocevski/323569/cmap_HighResolution_641347201_641606401_4FGL_J1418.4+3543_daily_bin1551.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=214.623 yref=35.7192 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.4370       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.1419       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.5551       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.6746       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10835E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.264       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.5676       1.0000         .10000E-03   10000.    
    13 'norm      '    7.0462       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    31.120       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .55972       1.0000         .10000E-03   10000.    
    22 'Prefactor '    55.709       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2104       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .74858       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=   8311.090     FROM MIGRAD    STATUS=CONVERGED    549 CALLS     2763 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.051        .75793E-05** at limit **
   2  Prefactor     5.4372        12.514       -.44736E-06   -.59456E-04
   3  Prefactor     .10000E-03    36.561        .34612E-05** at limit **
   4  norm          1.1419        .95860       -.14286E-06   -.98769E-03
   5  Prefactor     6.5554        4.2736       -.14011E-05   -.24827E-03
   6  norm          .10000E-03    4.7351        .94865E-07** at limit **
   7  Prefactor     .10000E-03    10.915       -.51729E-06** at limit **
   8  Prefactor     .10000E-03    5.0725       -.91850E-07** at limit **
   9  norm          6.6753        3.8258       -.89372E-07   -.49024E-03
  10  Prefactor     .10004E-03    12.216        .16159E-05** at limit **
  11  Prefactor     13.290        17.015       -.24161E-05   -.57925E-03
  12  Prefactor     1.5677        2.5197       -.44622E-06   -.89793E-03
  13  norm          7.0494        8.8248        .62028E-07   -.24279E-03
  14  Prefactor     .10000E-03    9.4969        .36703E-06** at limit **
  15  norm          .10000E-03    3.5628       -.15611E-07** at limit **
  16  Prefactor     .10000E-03    7.7368        .52668E-07** at limit **
  17  Prefactor     .10000E-03    24.534       -.10030E-04** at limit **
  18  norm          .10000E-03    2.5923       -.98741E-08** at limit **
  19  Prefactor     31.117        13.422       -.99221E-08   -.80730E-04
  20  Prefactor     .10000E-03    2.3740       -.40832E-08** at limit **
  21  norm          .56085        1.2357        .10481E-05   -.97949E-03
  22  Prefactor     55.680        62.692       -.30714E-04   -.47809E-04
  23  Normalizat    1.2104        .15058        .10034E-05   -.35614E-03
  24  Prefactor     .74859        .16506        .68594E-06   -.16734E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.43718
  Prefactor  = 0.0001
  norm       = 1.14192
  Prefactor  = 6.55541
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.67534
  Prefactor  = 0.000100044
  Prefactor  = 13.2899
  Prefactor  = 1.56773
  norm       = 7.04944
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 31.117
  Prefactor  = 0.0001
  norm       = 0.560854
  Prefactor  = 55.6795
  Normalizat = 1.21041
  Prefactor  = 0.748586
 **********
 **   18 **HESSE 
 **********

 FCN=   8311.090     FROM HESSE     STATUS=OK           399 CALLS     3162 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.4372        12.504        .17233E-03   -1.5242    
   3  Prefactor     .10000E-03    36.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.1419        .93559        .78864E-04   -1.5494    
   5  Prefactor     6.5554        4.2839        .14527E-03   -1.5196    
   6  norm          .10000E-03    4.7515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.0937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.6753        3.8096        .12827E-03   -1.5191    
  10  Prefactor     .10004E-03    79.502        .47236E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.290        13.965        .10998E-03   -1.4979    
  12  Prefactor     1.5677        2.4964        .17619E-03   -1.5458    
  13  norm          7.0494        8.7339        .15113E-03   -1.5177    
  14  Prefactor     .10000E-03    9.5310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.6213        .16792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.7381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    24.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.6022        .14332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     31.117        13.387        .71825E-04   -1.4592    
  20  Prefactor     .10000E-03    2.3828        .13699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .56085        1.1978        .13471E-03   -1.5558    
  22  Prefactor     55.680        61.221        .26872E-03   -1.4214    
  23  Normalizat    1.2104        .17739        .21288E-03   -.86282    
  24  Prefactor     .74859        .19399        .29761E-03   -1.0165    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79183e-09
Minuit parameter uncertainties:
  1  1.37056e-05
  2  12.5104
  3  4.14336e-05
  4  0.935607
  5  4.28406
  6  4.30616e-06
  7  7.75029e-06
  8  6.00037e-06
  9  3.80978
  10  0.00374532
  11  13.9687
  12  2.49661
  13  8.73546
  14  8.27574e-06
  15  3.91401e-06
  16  6.8618e-07
  17  1.06327e-05
  18  1.44235e-06
  19  13.3887
  20  1.98837e-06
  21  1.19788
  22  61.2898
  23  0.177483
  24  0.194169
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  6.675e+00  3.810e+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:  7.486e-01  1.942e-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.210e+00  1.775e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.38
Ra Dec: 214.623 35.719
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 4.06e-08 +/- 2.31e-08
Energy Flux (Fixed Index): 2.31e-05 +/- 1.32e-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) = 8310.9362142
delta logL = 0.153999755785

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8310.93222179
delta logL = 0.157992163457

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3098       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2535       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1985       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75630       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=   8310.932     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      264 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3099        3.7284        .11867E-03   -.97579E-03
   2  alpha         2.2535        .43548        .12228E-01   -.97008E-04
   3  Normalizat    1.1986        .17244        .21372E-03    .10849E-03
   4  Prefactor     .75626        .19362        .29618E-03    .65253E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.30993
  alpha      = 2.25346
  Normalizat = 1.19861
  Prefactor  = 0.756257
 **********
 **   18 **HESSE 
 **********

 FCN=   8310.932     FROM HESSE     STATUS=OK            25 CALLS      289 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3099        3.6723        .47470E-05   -1.5206    
   2  alpha         2.2535        .42878        .48912E-03   -.98775E-01
   3  Normalizat    1.1986        .17254        .42745E-04   -.86646    
   4  Prefactor     .75626        .19374        .11847E-04   -1.0136    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.62159e-10
Minuit parameter uncertainties:
  1  3.67245
  2  0.43093
  3  0.172626
  4  0.193915
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/323569': 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) = 8310.93222168
delta logL = 0.157992271834

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  6.310e+00  3.672e+00  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  2.253e+00  4.309e-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:  7.563e-01  1.939e-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.199e+00  1.726e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.68
Ra Dec: 214.623 35.719
Photon Index (Free Index): 2.25 +/- 0.43
Photon Flux (Free Index): 5.08e-08 +/- 3.22e-08
Energy Flux (Free Index): 1.99e-05 +/- 1.18e-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/323569/cmap_HighResolution_641347201_641606401_4FGL_J1418.4+3543_daily_bin1551.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.06e-08', energy_flux2='1.99e-05', photon_flux_error='2.31e-08', dlogl='1.58e-01', energy_flux='2.31e-05', photon_flux2='5.08e-08', job_status='DONE', time_completed='2021-09-09 08:37:37.674769', photon_index_error2='0.43', photon_index2='2.25', ts='5.38', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', energy_flux_error2='1.18e-05', EG='1.21', time_epoch_completed='1631201857.67', return_code='0', job_id='323569', GAL2='0.76', EG2='1.20', return_code2='0', energy_flux_error='1.32e-05', photon_flux_error2='3.22e-08', ts2='5.68', photon_index='2.02' WHERE bin_id='1551' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:37:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 323569: <4FGL_J1418.4+3543_daily_bin1551> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin1551 214.623 35.7192 641347201 641606401 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 :                                   707.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             355.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   728 sec.
    Turnaround time :                            731 sec.

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

