/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 0 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7370
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1418.4+3543_daily_bin258
RA = 214.623, Dec = 35.7192
tmin = 306201601, tmax = 306460801
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='315194', job_status='RUN', time_executed='2021-09-09 08:00:28.771416', time_epoch_executed='1631199628.77' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='258'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/315194

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/315194/ft1_4FGL_J1418.4+3543_daily_bin258.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/315194/ft2_4FGL_J1418.4+3543_daily_bin258.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/315194/ft1_4FGL_J1418.4+3543_daily_bin258.fits outfile=/scratch/kocevski/315194/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin258.fits ra=214.623 dec=35.7192 rad=12.0 tmin=306201601.0 tmax=306460801.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.49
user 3.24
sys 0.21

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/315194/ft1_filtered_4FGL_J1418.4+3543_daily_bin258.fits evtable="EVENTS" scfile=/scratch/kocevski/315194/ft2_4FGL_J1418.4+3543_daily_bin258.fits sctable="SC_DATA" expcube=/scratch/kocevski/315194/ltcube_306201601_306460801_4FGL_J1418.4+3543_daily_bin258.fits outfile=/scratch/kocevski/315194/expmap_306201601_306460801_4FGL_J1418.4+3543_daily_bin258.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/315194/ltcube_306201601_306460801_4FGL_J1418.4+3543_daily_bin258.fits
.....................!
real 190.65
user 185.04
sys 5.14

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

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/315194/ft1_filtered_4FGL_J1418.4+3543_daily_bin258.fits scfile=/scratch/kocevski/315194/ft2_4FGL_J1418.4+3543_daily_bin258.fits outfile=/scratch/kocevski/315194/cmap_HighResolution_306201601_306460801_4FGL_J1418.4+3543_daily_bin258.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    17.201       1.0000         .10000E-03   10000.    
     3 'Prefactor '    103.55       1.0000         .10000E-03   10000.    
     4 'norm      '    1.9028       1.0000         .10000E-03   10000.    
     5 'Prefactor '    35.842       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.266       1.0000         .10000E-03   10000.    
     9 'norm      '    .10672       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .15657E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.870       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.6375       1.0000         .10000E-03   10000.    
    13 'norm      '    .10111E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.7842       1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.609       1.0000         .10000E-03   10000.    
    17 'Prefactor '    42.953       1.0000         .10000E-03   10000.    
    18 'norm      '    .49821E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.4116       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.3495       1.0000         .10000E-03   10000.    
    22 'Prefactor '    41.778       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4140       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .46259       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=   6466.557     FROM MIGRAD    STATUS=CONVERGED    535 CALLS     2757 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.716        .66666E-06** at limit **
   2  Prefactor     17.207        21.363       -.41662E-06   -.41830E-04
   3  Prefactor     103.59        75.327       -.32848E-05   -.13253E-03
   4  norm          1.9037        1.4063        .67676E-07    .96318E-04
   5  Prefactor     35.847        7.5441        .74953E-07   -.85855E-04
   6  norm          .10000E-03    3.3020       -.43106E-07** at limit **
   7  Prefactor     .10000E-03    13.389        .44986E-06** at limit **
   8  Prefactor     22.292        24.186       -.18370E-05   -.18396E-03
   9  norm          .14661        3.3055        .16724E-05   -.12487E-02
  10  Prefactor     .10000E-03    24.873       -.95298E-06** at limit **
  11  Prefactor     13.883        18.449        .43573E-07   -.10201E-03
  12  Prefactor     4.6379        4.6960        .33298E-06    .21415E-03
  13  norm          .10000E-03    11.991       -.72244E-06** at limit **
  14  Prefactor     .10000E-03    6.4639       -.29294E-07** at limit **
  15  norm          1.7842        5.2598        .16577E-06    .43249E-05
  16  Prefactor     22.616        22.999       -.51690E-06   -.51016E-04
  17  Prefactor     42.981        35.369       -.27110E-05   -.19562E-03
  18  norm          .10000E-03    5.3341       -.14268E-06** at limit **
  19  Prefactor     9.4211        15.820        .77379E-07   -.36601E-04
  20  Prefactor     .10000E-03    9.0714        .23476E-06** at limit **
  21  norm          2.3511        1.7323       -.19016E-07   -.18817E-04
  22  Prefactor     41.763        72.487        .24690E-05    .35674E-04
  23  Normalizat    1.4132        .21791       -.24714E-05   -.27633E-03
  24  Prefactor     .46324        .20158        .50250E-05   -.32371E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 17.2069
  Prefactor  = 103.592
  norm       = 1.90366
  Prefactor  = 35.8471
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.2921
  norm       = 0.146613
  Prefactor  = 0.0001
  Prefactor  = 13.8827
  Prefactor  = 4.63789
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.78415
  Prefactor  = 22.6155
  Prefactor  = 42.9805
  norm       = 0.0001
  Prefactor  = 9.42109
  Prefactor  = 0.0001
  norm       = 2.35113
  Prefactor  = 41.7632
  Normalizat = 1.4132
  Prefactor  = 0.463244
 **********
 **   18 **HESSE 
 **********

 FCN=   6466.557     FROM HESSE     STATUS=OK           401 CALLS     3158 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.207        21.385        .96570E-04   -1.4878    
   3  Prefactor     103.59        76.172        .19757E-03   -1.3669    
   4  norm          1.9037        1.3967        .78973E-04   -1.5432    
   5  Prefactor     35.847        7.5634        .66941E-04   -1.4510    
   6  norm          .10000E-03    3.3033        .14271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     22.292        24.572        .84886E-04   -1.4763    
   9  norm          .14661        18.125        .22342E-02   -1.5631    
  10  Prefactor     .10000E-03    24.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.883        18.326        .10755E-03   -1.4963    
  12  Prefactor     4.6379        4.8015        .82934E-03   -1.5277    
  13  norm          .10000E-03    12.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.4659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.7842        5.1975        .29937E-03   -1.5441    
  16  Prefactor     22.616        23.003        .84240E-04   -1.4756    
  17  Prefactor     42.981        35.805        .61169E-04   -1.4396    
  18  norm          .10000E-03    17.907        .35491E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.4211        15.590        .13063E-03   -1.5094    
  20  Prefactor     .10000E-03    9.2151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.3511        1.7196        .83943E-04   -1.5401    
  22  Prefactor     41.763        72.454        .62019E-04   -1.4415    
  23  Normalizat    1.4132        .23282        .21807E-03   -.80248    
  24  Prefactor     .46324        .21525        .37824E-03   -1.1369    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04491e-08
Minuit parameter uncertainties:
  1  5.40894e-05
  2  21.3949
  3  76.2437
  4  1.39672
  5  7.56355
  6  2.86584e-07
  7  1.79075e-05
  8  24.5833
  9  3.26019
  10  8.81857e-05
  11  18.3339
  12  4.80186
  13  7.32943e-05
  14  1.32203e-06
  15  5.19886
  16  23.0122
  17  35.8234
  18  7.13755e-05
  19  15.5965
  20  5.35904e-06
  21  1.71964
  22  72.6071
  23  0.232994
  24  0.215623
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.466e-01  3.260e+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:  4.632e-01  2.156e-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.413e+00  2.330e-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.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.38e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/315194/likelihoodResults_306201601_306460801_4FGL_J1418.4+3543_daily_bin258.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) = 6465.96463479
delta logL = 0.592377837703

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6465.86092362
delta logL = 0.696089014918

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .21996       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.5079       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3339       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .51479       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=   6465.861     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      245 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .22065        3.8874        .74865E-02    .21504E-02
   2  alpha         4.5070        3.7484        .50000        .42835E-04
   3  Normalizat    1.3338        .44024E-01    .50490E-01    .23285E-05
   4  Prefactor     .51469        .46264E-01    .81286E-01    .36520E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.220652
  alpha      = 4.50705
  Normalizat = 1.33383
  Prefactor  = 0.514692
 **********
 **   18 **HESSE 
 **********

 FCN=   6465.861     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      280 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .22065        8.8891        .34112E-03   -1.5614    
   2  alpha         4.5070        2.6700        .33553E-01    .93201    
   3  Normalizat    1.3338        .14399        .22322E-03   -.82562    
   4  Prefactor     .51469        .14988        .36008E-03   -1.1131    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.33264e-10
Minuit parameter uncertainties:
  1  2.80082
  2  7.15993
  3  0.144029
  4  0.149994
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/315194': 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) = 6465.86092149
delta logL = 0.696091136247

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  2.207e-01  2.801e+00  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  4.507e+00  7.160e+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:  5.147e-01  1.500e-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.334e+00  1.440e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.48
Ra Dec: 214.623 35.719
Photon Index (Free Index): 4.51 +/- 7.16
Photon Flux (Free Index): 6.97e-08 +/- 6.43e-08
Energy Flux (Free Index): 9.95e-06 +/- 1.04e-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/315194/cmap_HighResolution_306201601_306460801_4FGL_J1418.4+3543_daily_bin258.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.38e-05', comment='SUCCESS', energy_flux2='9.95e-06', dlogl='6.96e-01', photon_flux2='6.97e-08', job_status='DONE', time_completed='2021-09-09 08:12:07.656886', photon_index_error2='7.16', photon_index2='4.51', ts='0.00', fit_tolerance='1e-08', GAL='0.46', photon_index_error='0.00', photon_flux_upper_limit='5.94e-08', energy_flux_error2='1.04e-05', EG='1.41', time_epoch_completed='1631200327.66', return_code='0', job_id='315194', GAL2='0.51', EG2='1.33', return_code2='102', photon_flux_error2='6.43e-08', ts2='1.48', photon_index='2.02' WHERE bin_id='258' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:12:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 315194: <4FGL_J1418.4+3543_daily_bin258> in cluster <slac> Done

Job <4FGL_J1418.4+3543_daily_bin258> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  9 08:00:18 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 08:00:20 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:00:20 2021
Terminated at Thu Sep  9 08:12:08 2021
Results reported at Thu Sep  9 08:12:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin258 214.623 35.7192 306201601 306460801 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 :                                   695.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             344.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   707 sec.
    Turnaround time :                            710 sec.

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

