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


Performing analysis on: 4FGL_J1418.4+3543_daily_bin1099
RA = 214.623, Dec = 35.7192
tmin = 524188801, tmax = 524448001
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='320642', job_status='RUN', time_executed='2021-09-09 08:18:23.493931', time_epoch_executed='1631200703.49' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='1099'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/320642

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/320642/ft1_4FGL_J1418.4+3543_daily_bin1099.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/320642/ft2_4FGL_J1418.4+3543_daily_bin1099.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/320642/ft1_4FGL_J1418.4+3543_daily_bin1099.fits outfile=/scratch/kocevski/320642/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1099.fits ra=214.623 dec=35.7192 rad=12.0 tmin=524188801.0 tmax=524448001.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.40
user 3.17
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/320642/ft1_filtered_4FGL_J1418.4+3543_daily_bin1099.fits" evtable="EVENTS" scfile=/scratch/kocevski/320642/ft2_4FGL_J1418.4+3543_daily_bin1099.fits sctable="SC_DATA" outfile=/scratch/kocevski/320642/ltcube_524188801_524448001_4FGL_J1418.4+3543_daily_bin1099.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/320642/ft2_4FGL_J1418.4+3543_daily_bin1099.fits
.....................!
real 11.68
user 11.33
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/320642/ft1_filtered_4FGL_J1418.4+3543_daily_bin1099.fits evtable="EVENTS" scfile=/scratch/kocevski/320642/ft2_4FGL_J1418.4+3543_daily_bin1099.fits sctable="SC_DATA" expcube=/scratch/kocevski/320642/ltcube_524188801_524448001_4FGL_J1418.4+3543_daily_bin1099.fits outfile=/scratch/kocevski/320642/expmap_524188801_524448001_4FGL_J1418.4+3543_daily_bin1099.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/320642/ltcube_524188801_524448001_4FGL_J1418.4+3543_daily_bin1099.fits
.....................!
real 190.52
user 185.20
sys 4.90

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/320642/ft1_filtered_4FGL_J1418.4+3543_daily_bin1099.fits scfile=/scratch/kocevski/320642/ft2_4FGL_J1418.4+3543_daily_bin1099.fits outfile=/scratch/kocevski/320642/cmap_524188801_524448001_4FGL_J1418.4+3543_daily_bin1099.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/320642/ft1_filtered_4FGL_J1418.4+3543_daily_bin1099.fits scfile=/scratch/kocevski/320642/ft2_4FGL_J1418.4+3543_daily_bin1099.fits outfile=/scratch/kocevski/320642/cmap_HighResolution_524188801_524448001_4FGL_J1418.4+3543_daily_bin1099.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    119.85       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    85.069       1.0000         .10000E-03   10000.    
     4 'norm      '    5.8318       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    8.4025       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.4593       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.297       1.0000         .10000E-03   10000.    
     9 'norm      '    .36831E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.171       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.0795       1.0000         .10000E-03   10000.    
    13 'norm      '    7.7471       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.245       1.0000         .10000E-03   10000.    
    15 'norm      '    5.5852       1.0000         .10000E-03   10000.    
    16 'Prefactor '    30.826       1.0000         .10000E-03   10000.    
    17 'Prefactor '    27.489       1.0000         .10000E-03   10000.    
    18 'norm      '    8.2300       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.9987       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.6066       1.0000         .10000E-03   10000.    
    21 'norm      '    1.0746       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12654E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .87839       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0026       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=   5739.893     FROM MIGRAD    STATUS=CONVERGED    980 CALLS     3243 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     119.85        72.678        .36758E-04   -.33774E-04
   2  Prefactor     .10000E-03    20.207        .18142E-02** at limit **
   3  Prefactor     85.061        68.882        .43555E-04   -.76844E-04
   4  norm          5.8317        1.9635        .59221E-04    .20157E-04
   5  Prefactor     .10000E-03    1.1063        .77555E-03** at limit **
   6  norm          8.4057        16.973        .13830E-03   -.17666E-03
   7  Prefactor     2.4253        33.455        .26080E-03   -.62903E-04
   8  Prefactor     12.296        16.368        .11423E-03   -.10948E-04
   9  norm          .88572E-02    4.0928        .36384E-01    .19794E-03
  10  Prefactor     19.176        14.898        .91475E-04   -.28461E-04
  11  Prefactor     .10000E-03    17.037        .18142E-02** at limit **
  12  Prefactor     2.0775        3.9517        .19105E-03   -.24338E-03
  13  norm          7.7461        10.508        .14407E-03    .84987E-04
  14  Prefactor     15.243        21.319        .10258E-03    .78354E-04
  15  norm          5.5841        6.1856        .84996E-03   -.41827E-03
  16  Prefactor     30.826        31.116        .72166E-04    .13233E-05
  17  Prefactor     27.489        24.016        .76410E-04    .18300E-04
  18  norm          8.2300        7.2080        .13975E-03   -.22282E-03
  19  Prefactor     2.9989        7.2519        .23441E-03   -.24958E-03
  20  Prefactor     4.6066        5.0884        .16862E-03   -.17385E-03
  21  norm          1.0730        1.5384        .10467E-03    .63814E-03
  22  Prefactor     .10000E-03    299.24        .18142E-02** at limit **
  23  Normalizat    .87851        .21236        .23758E-03   -.59706E-03
  24  Prefactor     1.0024        .22572        .26081E-03   -.18918E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 119.851
  Prefactor  = 0.0001
  Prefactor  = 85.0606
  norm       = 5.83167
  Prefactor  = 0.0001
  norm       = 8.40565
  Prefactor  = 2.42531
  Prefactor  = 12.2964
  norm       = 0.00885723
  Prefactor  = 19.1757
  Prefactor  = 0.000100001
  Prefactor  = 2.07749
  norm       = 7.7461
  Prefactor  = 15.2434
  norm       = 5.58408
  Prefactor  = 30.8258
  Prefactor  = 27.4887
  norm       = 8.23
  Prefactor  = 2.99888
  Prefactor  = 4.60663
  norm       = 1.07299
  Prefactor  = 0.0001
  Normalizat = 0.878506
  Prefactor  = 1.0024
 **********
 **   18 **HESSE 
 **********

 FCN=   5739.893     FROM HESSE     STATUS=OK           383 CALLS     3626 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     119.85        72.675        .73517E-05   -1.3514    
   2  Prefactor     .10000E-03    20.221        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     85.061        68.879        .87110E-05   -1.3861    
   4  norm          5.8317        1.9635        .23688E-05   -1.5225    
   5  Prefactor     .10000E-03    1.1064        .15511E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          8.4057        16.970        .55319E-05   -1.5128    
   7  Prefactor     2.4253        33.437        .10432E-04   -1.5396    
   8  Prefactor     12.296        16.367        .45692E-05   -1.5006    
   9  norm          .88572E-02    3.3863        .41579E-01   -1.5689    
  10  Prefactor     19.176        14.892        .36590E-05   -1.4832    
  11  Prefactor     .10000E-03    17.041        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.0775        3.9513        .76421E-05   -1.5420    
  13  norm          7.7461        10.507        .57628E-05   -1.5151    
  14  Prefactor     15.243        21.315        .41032E-05   -1.4927    
  15  norm          5.5841        6.1838        .33998E-04   -1.5235    
  16  Prefactor     30.826        31.114        .14433E-04   -1.4597    
  17  Prefactor     27.489        24.015        .30564E-05   -1.4659    
  18  norm          8.2300        7.2079        .55899E-05   -1.5134    
  19  Prefactor     2.9989        7.2514        .93762E-05   -1.5362    
  20  Prefactor     4.6066        5.0878        .33723E-04   -1.5279    
  21  norm          1.0730        1.5381        .41866E-05   -1.5501    
  22  Prefactor     .10000E-03    299.33        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .87851        .21251        .47515E-04   -.97220    
  24  Prefactor     1.0024        .22594        .10432E-04   -.92650    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39957e-09
Minuit parameter uncertainties:
  1  72.7296
  2  1.05198e-05
  3  68.9435
  4  1.96349
  5  4.48171e-07
  6  16.9801
  7  18.0223
  8  16.3727
  9  0.34443
  10  14.8952
  11  0.000294965
  12  3.95183
  13  10.5091
  14  21.3257
  15  6.18447
  16  31.1306
  17  24.0237
  18  7.20866
  19  7.25356
  20  5.08826
  21  1.53816
  22  0.00058296
  23  0.212708
  24  0.226155
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  8.857e-03  3.444e-01  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:  1.002e+00  2.262e-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:  8.785e-01  2.127e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 214.623 35.719
Photon Flux Upper Limit: 5.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.14e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/320642/likelihoodResults_524188801_524448001_4FGL_J1418.4+3543_daily_bin1099.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5739.89326413
delta logL = 2.84762863885e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5739.27807095
delta logL = 0.615221659614

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .66987       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6220       1.0000          .0000       5.0000    
     3 'Normalizat'    .82621       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0330       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=   5739.278     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      255 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .67024        10.379        .11946E-01    .10092E-02
   2  alpha         3.6215        4.2548        .45163        .46117E-04
   3  Normalizat    .82617        .33548E-01    .43951E-01    .16216E-04
   4  Prefactor     1.0330        .39083E-01    .41031E-01    .65914E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.670239
  alpha      = 3.62154
  Normalizat = 0.82617
  Prefactor  = 1.03303
 **********
 **   18 **HESSE 
 **********

 FCN=   5739.278     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      290 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .67024        33.728        .62023E-03   -1.5544    
   2  alpha         3.6215        2.7125        .16700E-01    .46522    
   3  Normalizat    .82617        .18954        .24400E-03   -.99105    
   4  Prefactor     1.0330        .21763        .25713E-03   -.91636    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.03826e-10
Minuit parameter uncertainties:
  1  9.51402
  2  8.68967
  3  0.189696
  4  0.217811
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/320642': 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): 102
logL (Free Index) = 5739.27807084
delta logL = 0.615221775852

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  6.702e-01  9.514e+00  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  3.622e+00  8.690e+00  0.000e+00  5.000e+00 ( 1.000e+00)
285         beta:  6.612e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
286           Eb:  8.292e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  1.033e+00  2.178e-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:  8.262e-01  1.897e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.30
Ra Dec: 214.623 35.719
Photon Index (Free Index): 3.62 +/- 8.69
Photon Flux (Free Index): 4.43e-08 +/- 5.41e-08
Energy Flux (Free Index): 7.41e-06 +/- 1.37e-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/320642/cmap_HighResolution_524188801_524448001_4FGL_J1418.4+3543_daily_bin1099.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.14e-05', comment='SUCCESS', energy_flux2='7.41e-06', dlogl='6.15e-01', photon_flux2='4.43e-08', job_status='DONE', time_completed='2021-09-09 08:30:51.524022', photon_index_error2='8.69', photon_index2='3.62', ts='0.00', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='5.52e-08', energy_flux_error2='1.37e-05', EG='0.88', time_epoch_completed='1631201451.52', return_code='0', job_id='320642', GAL2='1.03', EG2='0.83', return_code2='102', photon_flux_error2='5.41e-08', ts2='1.30', photon_index='2.02' WHERE bin_id='1099' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:30:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 320642: <4FGL_J1418.4+3543_daily_bin1099> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin1099 214.623 35.7192 524188801 524448001 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 :                                   691.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            904 sec.

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

