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


Performing analysis on: 4FGL_J1418.4+3543_daily_bin900
RA = 214.623, Dec = 35.7192
tmin = 472608001, tmax = 472867201
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='320332', job_status='RUN', time_executed='2021-09-09 08:15:39.680875', time_epoch_executed='1631200539.68' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='900'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/320332

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/320332/ft1_4FGL_J1418.4+3543_daily_bin900.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/320332/ft2_4FGL_J1418.4+3543_daily_bin900.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/320332/ft1_4FGL_J1418.4+3543_daily_bin900.fits outfile=/scratch/kocevski/320332/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin900.fits ra=214.623 dec=35.7192 rad=12.0 tmin=472608001.0 tmax=472867201.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.57
user 3.35
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/320332/ft1_filtered_4FGL_J1418.4+3543_daily_bin900.fits evtable="EVENTS" scfile=/scratch/kocevski/320332/ft2_4FGL_J1418.4+3543_daily_bin900.fits sctable="SC_DATA" expcube=/scratch/kocevski/320332/ltcube_472608001_472867201_4FGL_J1418.4+3543_daily_bin900.fits outfile=/scratch/kocevski/320332/expmap_472608001_472867201_4FGL_J1418.4+3543_daily_bin900.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/320332/ltcube_472608001_472867201_4FGL_J1418.4+3543_daily_bin900.fits
.....................!
real 191.22
user 185.40
sys 5.23

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/320332/ft1_filtered_4FGL_J1418.4+3543_daily_bin900.fits scfile=/scratch/kocevski/320332/ft2_4FGL_J1418.4+3543_daily_bin900.fits outfile=/scratch/kocevski/320332/cmap_472608001_472867201_4FGL_J1418.4+3543_daily_bin900.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.63
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/320332/ft1_filtered_4FGL_J1418.4+3543_daily_bin900.fits scfile=/scratch/kocevski/320332/ft2_4FGL_J1418.4+3543_daily_bin900.fits outfile=/scratch/kocevski/320332/cmap_HighResolution_472608001_472867201_4FGL_J1418.4+3543_daily_bin900.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.56
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10064E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.8298       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.0134       1.0000         .10000E-03   10000.    
     6 'norm      '    39.099       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.892       1.0000         .10000E-03   10000.    
     9 'norm      '    14.867       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    11.335       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.1222       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.380       1.0000         .10000E-03   10000.    
    21 'norm      '    7.9709       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .93965E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2179       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .83478       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=   7167.592     FROM MIGRAD    STATUS=CONVERGED    526 CALLS     2667 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.424       -.24911E-04** at limit **
   2  Prefactor     .10000E-03    31.644       -.75492E-05** at limit **
   3  Prefactor     .10000E-03    72.684       -.16314E-04** at limit **
   4  norm          3.8300        1.6829       -.35274E-07   -.18748E-03
   5  Prefactor     5.0140        3.7611       -.12098E-06   -.19045E-03
   6  norm          39.100        17.494       -.22456E-06   -.27993E-03
   7  Prefactor     .10000E-03    41.701        .43510E-04** at limit **
   8  Prefactor     15.898        19.011        .41133E-07   -.25529E-04
   9  norm          14.868        5.0649       -.66413E-06   -.27882E-03
  10  Prefactor     .10000E-03    5.7715        .23204E-07** at limit **
  11  Prefactor     .10000E-03    13.036       -.62815E-05** at limit **
  12  Prefactor     .10000E-03    1.8881        .13970E-07** at limit **
  13  norm          .10000E-03    3.5156        .25081E-07** at limit **
  14  Prefactor     .10000E-03    11.959        .38948E-05** at limit **
  15  norm          11.338        7.3264       -.69032E-06   -.89480E-04
  16  Prefactor     .10000E-03    17.354        .13782E-04** at limit **
  17  Prefactor     .10000E-03    13.769       -.19133E-05** at limit **
  18  norm          7.1232        9.1260       -.35797E-06   -.29705E-04
  19  Prefactor     .10000E-03    13.659       -.18534E-05** at limit **
  20  Prefactor     13.387        10.136       -.96173E-06   -.94599E-03
  21  norm          7.9610        2.5371        .32907E-06    .31132E-02
  22  Prefactor     .10000E-03    320.74       -.27452E-03** at limit **
  23  Normalizat    1.2178        .17074        .52876E-06    .19045E-03
  24  Prefactor     .83479        .18623        .23184E-06    .17529E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.83004
  Prefactor  = 5.01398
  norm       = 39.1003
  Prefactor  = 0.000100002
  Prefactor  = 15.898
  norm       = 14.8683
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 11.3382
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.12321
  Prefactor  = 0.0001
  Prefactor  = 13.387
  norm       = 7.96104
  Prefactor  = 0.000100004
  Normalizat = 1.21778
  Prefactor  = 0.834791
 **********
 **   18 **HESSE 
 **********

 FCN=   7167.592     FROM HESSE     STATUS=OK           389 CALLS     3056 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    32.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    72.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.8300        1.6831        .70192E-04   -1.5317    
   5  Prefactor     5.0140        3.7597        .13643E-03   -1.5260    
   6  norm          39.100        17.527        .64100E-04   -1.4457    
   7  Prefactor     .10000E-03    42.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.898        19.089        .10047E-03   -1.4910    
   9  norm          14.868        5.0710        .10388E-03   -1.4937    
  10  Prefactor     .10000E-03    5.7986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.9180        .11352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.5162        .15503E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          11.338        7.3264        .11899E-03   -1.5034    
  16  Prefactor     .10000E-03    17.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.1232        9.1174        .15031E-03   -1.5174    
  19  Prefactor     .10000E-03    13.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.387        10.172        .54751E-03   -1.4976    
  21  norm          7.9610        2.5474        .67045E-04   -1.5144    
  22  Prefactor     .10000E-03    321.07        .20803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2178        .20637        .23551E-03   -.86055    
  24  Prefactor     .83479        .22323        .31189E-03   -.98458    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27962e-09
Minuit parameter uncertainties:
  1  7.95619e-06
  2  6.37072e-05
  3  1.04694e-05
  4  1.68315
  5  3.75989
  6  17.5297
  7  0.000580826
  8  19.0966
  9  5.07118
  10  1.27932e-06
  11  3.03212e-06
  12  1.73781e-06
  13  1.66071e-06
  14  8.47959e-06
  15  7.32702
  16  1.18052e-06
  17  5.08283e-07
  18  9.11916
  19  3.72262e-05
  20  10.1733
  21  2.54745
  22  0.00215809
  23  0.206506
  24  0.223475
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.487e+01  5.071e+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.348e-01  2.235e-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.218e+00  2.065e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 26.95
Ra Dec: 214.623 35.719
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 9.03e-08 +/- 3.08e-08
Energy Flux (Fixed Index): 5.14e-05 +/- 1.75e-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) = 7167.51877144
delta logL = 0.0731719701416

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7167.51601307
delta logL = 0.0759303401164

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.481       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1430       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2035       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84417       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=   7167.516     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      235 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.481        79.046        .26313E-02    .56646E-04
   2  alpha         2.1430        3.5460        .22777        .39034E-04
   3  Normalizat    1.2036        .25491        .53516E-01    .60729E-05
   4  Prefactor     .84416        .20354        .70126E-01    .21432E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.4809
  alpha      = 2.14301
  Normalizat = 1.20355
  Prefactor  = 0.844164
 **********
 **   18 **HESSE 
 **********

 FCN=   7167.516     FROM HESSE     STATUS=OK            33 CALLS      268 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.481        5.0706        .10281E-03   -1.4947    
   2  alpha         2.1430        .32859        .92177E-02   -.14329    
   3  Normalizat    1.2036        .20232        .23663E-03   -.86493    
   4  Prefactor     .84416        .22366        .31027E-03   -.98120    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.2907e-10
Minuit parameter uncertainties:
  1  5.07077
  2  0.329566
  3  0.202452
  4  0.2239
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/320332': 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) = 7167.51601307
delta logL = 0.0759303447221

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.448e+01  5.071e+00  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  2.143e+00  3.296e-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:  8.442e-01  2.239e-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.204e+00  2.025e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 26.96
Ra Dec: 214.623 35.719
Photon Index (Free Index): 2.14 +/- 0.33
Photon Flux (Free Index): 1.02e-07 +/- 4.43e-08
Energy Flux (Free Index): 4.67e-05 +/- 1.89e-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/320332/cmap_HighResolution_472608001_472867201_4FGL_J1418.4+3543_daily_bin900.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.03e-08', energy_flux2='4.67e-05', photon_flux_error='3.08e-08', dlogl='7.59e-02', energy_flux='5.14e-05', photon_flux2='1.02e-07', job_status='DONE', time_completed='2021-09-09 08:26:38.121795', photon_index_error2='0.33', photon_index2='2.14', ts='26.95', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='1.89e-05', EG='1.22', time_epoch_completed='1631201198.12', return_code='0', job_id='320332', GAL2='0.84', EG2='1.20', return_code2='0', energy_flux_error='1.75e-05', photon_flux_error2='4.43e-08', ts2='26.96', photon_index='2.02' WHERE bin_id='900' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:26:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0110>
Subject: Job 320332: <4FGL_J1418.4+3543_daily_bin900> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin900 214.623 35.7192 472608001 472867201 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 :                                   654.47 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             348.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   671 sec.
    Turnaround time :                            672 sec.

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

