/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 229 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_bin1239
RA = 214.623, Dec = 35.7192
tmin = 560476801, tmax = 560736001
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='321928', job_status='RUN', time_executed='2021-09-09 08:24:31.094380', time_epoch_executed='1631201071.09' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='1239'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/321928

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/321928/ft1_4FGL_J1418.4+3543_daily_bin1239.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/321928/ft2_4FGL_J1418.4+3543_daily_bin1239.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/321928/ft1_4FGL_J1418.4+3543_daily_bin1239.fits outfile=/scratch/kocevski/321928/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1239.fits ra=214.623 dec=35.7192 rad=12.0 tmin=560476801.0 tmax=560736001.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.72
user 3.49
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/321928/ft1_filtered_4FGL_J1418.4+3543_daily_bin1239.fits" evtable="EVENTS" scfile=/scratch/kocevski/321928/ft2_4FGL_J1418.4+3543_daily_bin1239.fits sctable="SC_DATA" outfile=/scratch/kocevski/321928/ltcube_560476801_560736001_4FGL_J1418.4+3543_daily_bin1239.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/321928/ft2_4FGL_J1418.4+3543_daily_bin1239.fits
.....................!
real 11.78
user 11.42
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/321928/ft1_filtered_4FGL_J1418.4+3543_daily_bin1239.fits evtable="EVENTS" scfile=/scratch/kocevski/321928/ft2_4FGL_J1418.4+3543_daily_bin1239.fits sctable="SC_DATA" expcube=/scratch/kocevski/321928/ltcube_560476801_560736001_4FGL_J1418.4+3543_daily_bin1239.fits outfile=/scratch/kocevski/321928/expmap_560476801_560736001_4FGL_J1418.4+3543_daily_bin1239.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/321928/ltcube_560476801_560736001_4FGL_J1418.4+3543_daily_bin1239.fits
.....................!
real 190.23
user 185.35
sys 4.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/321928/ft1_filtered_4FGL_J1418.4+3543_daily_bin1239.fits scfile=/scratch/kocevski/321928/ft2_4FGL_J1418.4+3543_daily_bin1239.fits outfile=/scratch/kocevski/321928/cmap_560476801_560736001_4FGL_J1418.4+3543_daily_bin1239.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/321928/ft1_filtered_4FGL_J1418.4+3543_daily_bin1239.fits scfile=/scratch/kocevski/321928/ft2_4FGL_J1418.4+3543_daily_bin1239.fits outfile=/scratch/kocevski/321928/cmap_HighResolution_560476801_560736001_4FGL_J1418.4+3543_daily_bin1239.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    79.588       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    217.93       1.0000         .10000E-03   10000.    
     4 'norm      '    3.6641       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.6503       1.0000         .10000E-03   10000.    
     6 'norm      '    21.956       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .24041       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10459E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    32.940       1.0000         .10000E-03   10000.    
    15 'norm      '    4.1369       1.0000         .10000E-03   10000.    
    16 'Prefactor '    160.91       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    25.839       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.5670       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.3154       1.0000         .10000E-03   10000.    
    21 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.265       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .42516       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1974       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=   2695.368     FROM MIGRAD    STATUS=CONVERGED    506 CALLS     2688 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     79.548        102.53       -.76411E-06   -.49751E-05
   2  Prefactor     .10000E-03    9.8929       -.95554E-07** at limit **
   3  Prefactor     217.90        112.75       -.64550E-06   -.74184E-05
   4  norm          3.6644        2.3181       -.47637E-08   -.25663E-04
   5  Prefactor     2.6541        5.6046       -.55772E-07    .20444E-04
   6  norm          21.954        22.995       -.16790E-06   -.13039E-04
   7  Prefactor     .10000E-03    12.889       -.13846E-06** at limit **
   8  Prefactor     .10000E-03    6.3562       -.77863E-07** at limit **
   9  norm          .23806        4.1063        .58953E-06   -.18986E-03
  10  Prefactor     .10000E-03    6.6718       -.13302E-06** at limit **
  11  Prefactor     .10000E-03    9.9110       -.25855E-06** at limit **
  12  Prefactor     .10000E-03    4.6707        .63244E-07** at limit **
  13  norm          .10000E-03    11.716       -.35067E-07** at limit **
  14  Prefactor     32.919        42.194       -.33056E-06   -.16913E-04
  15  norm          4.1419        12.712        .77332E-07   -.19565E-04
  16  Prefactor     160.93        123.57       -.26154E-06   -.17182E-04
  17  Prefactor     .10000E-03    9.9879        .31164E-07** at limit **
  18  norm          25.835        17.201       -.13695E-08   -.29473E-04
  19  Prefactor     8.5641        20.916        .25492E-06   -.33124E-04
  20  Prefactor     5.3152        10.272       -.33598E-06   -.20014E-03
  21  norm          .10000E-03    .96664        .10691E-05** at limit **
  22  Prefactor     12.433        130.68       -.40751E-05   -.10931E-04
  23  Normalizat    .42410        .28041        .63279E-05   -.79793E-04
  24  Prefactor     1.1986        .30276       -.46554E-05   -.34246E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 79.5479
  Prefactor  = 0.0001
  Prefactor  = 217.901
  norm       = 3.66443
  Prefactor  = 2.65408
  norm       = 21.9537
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.238063
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 32.9187
  norm       = 4.14193
  Prefactor  = 160.926
  Prefactor  = 0.0001
  norm       = 25.8353
  Prefactor  = 8.56409
  Prefactor  = 5.3152
  norm       = 0.0001
  Prefactor  = 12.4328
  Normalizat = 0.424101
  Prefactor  = 1.19864
 **********
 **   18 **HESSE 
 **********

 FCN=   2695.368     FROM HESSE     STATUS=OK           401 CALLS     3089 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     79.548        102.60        .22509E-03   -1.3922    
   2  Prefactor     .10000E-03    9.8981        .15951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     217.90        112.82        .13698E-03   -1.2745    
   4  norm          3.6644        2.3149        .60264E-04   -1.5325    
   5  Prefactor     2.6541        5.6045        .16348E-03   -1.5382    
   6  norm          21.954        22.983        .85483E-04   -1.4771    
   7  Prefactor     .10000E-03    12.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.3586        .12785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .23806        8.6719        .19853E-02   -1.5610    
  10  Prefactor     .10000E-03    6.6813        .13098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.9293        .15965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.8053        .21865E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    11.728        .17358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     32.919        42.190        .69818E-04   -1.4560    
  15  norm          4.1419        12.540        .19818E-03   -1.5301    
  16  Prefactor     160.93        122.34        .31790E-04   -1.3164    
  17  Prefactor     .10000E-03    9.9889        .16027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          25.835        17.188        .78808E-04   -1.4691    
  19  Prefactor     8.5641        20.806        .13695E-03   -1.5123    
  20  Prefactor     5.3152        10.227        .17432E-03   -1.5247    
  21  norm          .10000E-03    1.0302        .10157E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     12.433        129.97        .11438E-03   -1.5003    
  23  Normalizat    .42410        .28885        .29453E-03   -1.1607    
  24  Prefactor     1.1986        .31293        .21667E-03   -.86373    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11654e-10
Minuit parameter uncertainties:
  1  102.83
  2  7.12271e-06
  3  112.934
  4  2.31492
  5  5.60557
  6  22.9925
  7  7.1359e-06
  8  2.78142e-06
  9  2.87349
  10  7.29415e-06
  11  1.37851e-05
  12  1.16194e-05
  13  4.81103e-07
  14  42.2282
  15  12.5478
  16  122.539
  17  6.40852e-07
  18  17.191
  19  20.8231
  20  10.2301
  21  1.29727e-05
  22  80.6203
  23  0.289877
  24  0.313412
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  2.381e-01  2.873e+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:  1.199e+00  3.134e-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:  4.241e-01  2.899e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/321928/likelihoodResults_560476801_560736001_4FGL_J1418.4+3543_daily_bin1239.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): 0
logL (Free Index) = 2695.36838898
delta logL = 1.62397413987e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2695.36838706
delta logL = 1.81606701517e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .23807       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0002       1.0000          .0000       5.0000    
     3 'Normalizat'    .42418       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1986       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=   2695.368     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      217 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .24080        197.51        .35048E-01    .49339E-03
   2  alpha         1.9977        3.4584        .42242        .18252E-04
   3  Normalizat    .42412        .40036E-01    .66535E-01   -.78036E-04
   4  Prefactor     1.1986        .48504E-01    .34665E-01   -.15238E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.240797
  alpha      = 1.99767
  Normalizat = 0.424123
  Prefactor  = 1.19862
 **********
 **   18 **HESSE 
 **********

 FCN=   2695.368     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .24080        11.409        .19938E-02   -1.5610    
   2  alpha         1.9977        3.4988        .52303E-01   -.20231    
   3  Normalizat    .42412        .25001        .29451E-03   -1.1607    
   4  Prefactor     1.1986        .30227        .21668E-03   -.86374    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78246e-08
Minuit parameter uncertainties:
  1  3.31491
  2  3.37666
  3  0.250671
  4  0.302706
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/321928': 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) = 2695.3683863
delta logL = 1.89181814676e-05

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  2.408e-01  3.315e+00  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  1.998e+00  3.377e+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.199e+00  3.027e-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:  4.241e-01  2.507e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 214.623 35.719

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/321928/cmap_HighResolution_560476801_560736001_4FGL_J1418.4+3543_daily_bin1239.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.84e-05', job_status='DONE', photon_flux_upper_limit='6.75e-08', time_completed='2021-09-09 08:32:26.378606', job_id='321928', GAL2='1.20', fit_tolerance='1e-08', EG2='0.42', EG='0.42', time_epoch_completed='1631201546.38', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='1.89e-05', ts2='0.01', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='1239' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:32:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 321928: <4FGL_J1418.4+3543_daily_bin1239> in cluster <slac> Done

Job <4FGL_J1418.4+3543_daily_bin1239> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  9 08:20:32 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 08:20:33 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:20:33 2021
Terminated at Thu Sep  9 08:32:27 2021
Results reported at Thu Sep  9 08:32:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin1239 214.623 35.7192 560476801 560736001 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 :                                   471.37 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             230.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   713 sec.
    Turnaround time :                            715 sec.

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

