/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 177 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 = 7316
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1418.4+3543_daily_bin26
RA = 214.623, Dec = 35.7192
tmin = 246067201, tmax = 246326401
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='312408', job_status='RUN', time_executed='2021-09-09 07:53:43.918293', time_epoch_executed='1631199223.92' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='26'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/312408

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/312408/ft1_4FGL_J1418.4+3543_daily_bin26.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/312408/ft2_4FGL_J1418.4+3543_daily_bin26.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/312408/ft1_4FGL_J1418.4+3543_daily_bin26.fits outfile=/scratch/kocevski/312408/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin26.fits ra=214.623 dec=35.7192 rad=12.0 tmin=246067201.0 tmax=246326401.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 1.49
user 1.30
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/312408/ft2_4FGL_J1418.4+3543_daily_bin26.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/312408/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin26.fits evtable="EVENTS" outfile="/scratch/kocevski/312408/ft1_filtered_4FGL_J1418.4+3543_daily_bin26.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/312408/ft1_filtered_4FGL_J1418.4+3543_daily_bin26.fits" evtable="EVENTS" scfile=/scratch/kocevski/312408/ft2_4FGL_J1418.4+3543_daily_bin26.fits sctable="SC_DATA" outfile=/scratch/kocevski/312408/ltcube_246067201_246326401_4FGL_J1418.4+3543_daily_bin26.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/312408/ft2_4FGL_J1418.4+3543_daily_bin26.fits
.....................!
real 12.13
user 11.77
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/312408/ft1_filtered_4FGL_J1418.4+3543_daily_bin26.fits evtable="EVENTS" scfile=/scratch/kocevski/312408/ft2_4FGL_J1418.4+3543_daily_bin26.fits sctable="SC_DATA" expcube=/scratch/kocevski/312408/ltcube_246067201_246326401_4FGL_J1418.4+3543_daily_bin26.fits outfile=/scratch/kocevski/312408/expmap_246067201_246326401_4FGL_J1418.4+3543_daily_bin26.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/312408/ltcube_246067201_246326401_4FGL_J1418.4+3543_daily_bin26.fits
.....................!
real 190.51
user 185.24
sys 4.88

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/312408/ft1_filtered_4FGL_J1418.4+3543_daily_bin26.fits scfile=/scratch/kocevski/312408/ft2_4FGL_J1418.4+3543_daily_bin26.fits outfile=/scratch/kocevski/312408/cmap_246067201_246326401_4FGL_J1418.4+3543_daily_bin26.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/312408/ft1_filtered_4FGL_J1418.4+3543_daily_bin26.fits scfile=/scratch/kocevski/312408/ft2_4FGL_J1418.4+3543_daily_bin26.fits outfile=/scratch/kocevski/312408/cmap_HighResolution_246067201_246326401_4FGL_J1418.4+3543_daily_bin26.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=214.623 yref=35.7192 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    171.91       1.0000         .10000E-03   10000.    
     4 'norm      '    2.1119       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.6939       1.0000         .10000E-03   10000.    
     6 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .71285       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.413       1.0000         .10000E-03   10000.    
    18 'norm      '    5.3083       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.8445       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .85073       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2248       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=   7683.986     FROM MIGRAD    STATUS=CONVERGED    504 CALLS     2643 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.991       -.90796E-06** at limit **
   2  Prefactor     .10000E-03    14.365        .25418E-05** at limit **
   3  Prefactor     171.91        76.538        .19311E-06    .11032E-04
   4  norm          2.1118        1.5997        .95422E-07   -.82128E-04
   5  Prefactor     6.6937        3.7870        .92019E-06   -.80299E-03
   6  norm          .10000E-03    5.9668       -.93081E-07** at limit **
   7  Prefactor     .10000E-03    6.1937       -.32484E-06** at limit **
   8  Prefactor     .10000E-03    8.5945        .10026E-06** at limit **
   9  norm          .10000E-03    2.2533       -.43168E-06** at limit **
  10  Prefactor     .10000E-03    4.4090       -.19475E-06** at limit **
  11  Prefactor     .10000E-03    5.3421        .37492E-06** at limit **
  12  Prefactor     .71357        2.5143        .11245E-05   -.22270E-03
  13  norm          .10000E-03    5.6375        .18511E-06** at limit **
  14  Prefactor     .10000E-03    5.5968        .23579E-06** at limit **
  15  norm          .10000E-03    2.1360        .32323E-07** at limit **
  16  Prefactor     .10000E-03    8.2868       -.32709E-06** at limit **
  17  Prefactor     23.408        29.007       -.11432E-05   -.15587E-03
  18  norm          5.3083        5.7513        .31260E-07    .75451E-06
  19  Prefactor     .10000E-03    5.9762       -.12618E-06** at limit **
  20  Prefactor     .10000E-03    2.3237        .35947E-06** at limit **
  21  norm          1.8445        1.0591        .56647E-08   -.16872E-03
  22  Prefactor     .10000E-03    17.029       -.14094E-05** at limit **
  23  Normalizat    .85075        .15442       -.53867E-06   -.61972E-04
  24  Prefactor     1.2248        .17044       -.10332E-06   -.59253E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 171.91
  norm       = 2.11183
  Prefactor  = 6.69367
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.71357
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.4078
  norm       = 5.30829
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.8445
  Prefactor  = 0.000100001
  Normalizat = 0.850754
  Prefactor  = 1.22477
 **********
 **   18 **HESSE 
 **********

 FCN=   7683.986     FROM HESSE     STATUS=OK           385 CALLS     3028 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     171.91        77.033        .30774E-04   -1.3078    
   4  norm          2.1118        1.5920        .92594E-04   -1.5417    
   5  Prefactor     6.6937        3.8732        .62490E-03   -1.5190    
   6  norm          .10000E-03    5.9990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.2285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.6603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.3349        .25787E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.4310        .17986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.3804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .71357        2.5239        .25082E-03   -1.5539    
  13  norm          .10000E-03    5.6628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.6108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.1495        .12508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.3048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     23.408        29.504        .82783E-04   -1.4740    
  18  norm          5.3083        5.7518        .17444E-03   -1.5247    
  19  Prefactor     .10000E-03    5.9969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.3549        .13101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.8445        1.0595        .30708E-04   -1.5436    
  22  Prefactor     .10000E-03    17.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .85075        .18506        .25277E-03   -.98213    
  24  Prefactor     1.2248        .20463        .24725E-03   -.85573    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.03855e-10
Minuit parameter uncertainties:
  1  0.000163964
  2  0.000398263
  3  77.0779
  4  1.59203
  5  3.87339
  6  1.1845e-05
  7  3.50291e-05
  8  8.92178e-06
  9  2.4069e-05
  10  1.81012e-05
  11  3.60407e-05
  12  2.5243
  13  1.85399e-05
  14  2.26034e-05
  15  2.08923e-06
  16  4.10092e-05
  17  29.5228
  18  5.75244
  19  7.51594e-06
  20  2.34843e-05
  21  1.05952
  22  0.000251399
  23  0.185196
  24  0.204762
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.000e-04  2.407e-05  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.225e+00  2.048e-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.508e-01  1.852e-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: 4.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.45e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/312408/likelihoodResults_246067201_246326401_4FGL_J1418.4+3543_daily_bin26.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) = 7683.98815897
delta logL = -0.00204270764516

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7683.56995999
delta logL = 0.416156267176

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14575       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.4223       1.0000          .0000       5.0000    
     3 'Normalizat'    .79594       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2629       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=   7683.570     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      328 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .14597        2.8166        .82165E-02    .34864E-02
   2  alpha         4.4233        4.0910        .50000        .66182E-04
   3  Normalizat    .79606        .30614E-01    .43557E-01    .21998E-04
   4  Prefactor     1.2627        .35368E-01    .55195E-01    .40621E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.145967
  alpha      = 4.42328
  Normalizat = 0.796065
  Prefactor  = 1.26275
 **********
 **   18 **HESSE 
 **********

 FCN=   7683.570     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      361 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .14597        9.0014        .37166E-04   -1.5632    
   2  alpha         4.4233        2.7622        .38674E-01    .87777    
   3  Normalizat    .79606        .13240        .26059E-03   -1.0021    
   4  Prefactor     1.2627        .15136        .24405E-03   -.84422    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.07539e-06
Minuit parameter uncertainties:
  1  2.29209
  2  8.6011
  3  0.132449
  4  0.15141
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/312408': 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) = 7683.56995471
delta logL = 0.416161552598

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.460e-01  2.292e+00  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  4.423e+00  8.601e+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.263e+00  1.514e-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:  7.961e-01  1.324e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 214.623 35.719

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/312408/cmap_HighResolution_246067201_246326401_4FGL_J1418.4+3543_daily_bin26.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.45e-05', job_status='DONE', photon_flux_upper_limit='4.30e-08', time_completed='2021-09-09 08:05:59.308735', job_id='312408', GAL2='1.26', fit_tolerance='1e-08', EG2='0.80', EG='0.85', time_epoch_completed='1631199959.31', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='4.16e-01', ts2='0.91', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='26' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:05:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 312408: <4FGL_J1418.4+3543_daily_bin26> in cluster <slac> Done

Job <4FGL_J1418.4+3543_daily_bin26> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Thu Sep  9 07:50:35 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 07:50:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 07:50:36 2021
Terminated at Thu Sep  9 08:06:00 2021
Results reported at Thu Sep  9 08:06:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin26 214.623 35.7192 246067201 246326401 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 :                                   733.20 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             321.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            925 sec.

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

