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


Performing analysis on: 4FGL_J1418.4+3543_daily_bin1000
RA = 214.623, Dec = 35.7192
tmin = 498528001, tmax = 498787201
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='320488', job_status='RUN', time_executed='2021-09-09 08:19:05.177076', time_epoch_executed='1631200745.18' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='1000'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/320488

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/320488/ft1_4FGL_J1418.4+3543_daily_bin1000.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/320488/ft2_4FGL_J1418.4+3543_daily_bin1000.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/320488/ft1_4FGL_J1418.4+3543_daily_bin1000.fits outfile=/scratch/kocevski/320488/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1000.fits ra=214.623 dec=35.7192 rad=12.0 tmin=498528001.0 tmax=498787201.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 4.91
user 4.69
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/320488/ft2_4FGL_J1418.4+3543_daily_bin1000.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/320488/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1000.fits evtable="EVENTS" outfile="/scratch/kocevski/320488/ft1_filtered_4FGL_J1418.4+3543_daily_bin1000.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.51
user 0.34
sys 0.13

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/320488/ft1_filtered_4FGL_J1418.4+3543_daily_bin1000.fits evtable="EVENTS" scfile=/scratch/kocevski/320488/ft2_4FGL_J1418.4+3543_daily_bin1000.fits sctable="SC_DATA" expcube=/scratch/kocevski/320488/ltcube_498528001_498787201_4FGL_J1418.4+3543_daily_bin1000.fits outfile=/scratch/kocevski/320488/expmap_498528001_498787201_4FGL_J1418.4+3543_daily_bin1000.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/320488/ltcube_498528001_498787201_4FGL_J1418.4+3543_daily_bin1000.fits
.....................!
real 190.85
user 186.17
sys 4.32

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/320488/ft1_filtered_4FGL_J1418.4+3543_daily_bin1000.fits scfile=/scratch/kocevski/320488/ft2_4FGL_J1418.4+3543_daily_bin1000.fits outfile=/scratch/kocevski/320488/cmap_498528001_498787201_4FGL_J1418.4+3543_daily_bin1000.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/320488/ft1_filtered_4FGL_J1418.4+3543_daily_bin1000.fits scfile=/scratch/kocevski/320488/ft2_4FGL_J1418.4+3543_daily_bin1000.fits outfile=/scratch/kocevski/320488/cmap_HighResolution_498528001_498787201_4FGL_J1418.4+3543_daily_bin1000.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/320488/ft1_filtered_4FGL_J1418.4+3543_daily_bin1000.fits evtable="EVENTS" scfile=/scratch/kocevski/320488/ft2_4FGL_J1418.4+3543_daily_bin1000.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/320488/Model_4FGL_J1418.4+3543_daily_bin1000.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/320488/ft1_filtered_4FGL_J1418.4+3543_daily_bin1000.fits.....................!
real 44.65
user 43.37
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    101.28       1.0000         .10000E-03   10000.    
     2 'Prefactor '    31.552       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    6.0556       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.1288       1.0000         .10000E-03   10000.    
     6 'norm      '    20.120       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.269       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-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 '    3.2928       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    59.547       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .18118E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    28.596       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.1854       1.0000         .10000E-03   10000.    
    21 'norm      '    3.6564       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .97311       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .99903       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=   5516.407     FROM MIGRAD    STATUS=CONVERGED    568 CALLS     2731 TOTAL
                     EDM=   .72E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     101.27        69.240        .36240E-06    .30360E-05
   2  Prefactor     31.548        28.123       -.82300E-06    .31732E-04
   3  Prefactor     .10000E-03    57.562       -.14522E-06** at limit **
   4  norm          6.0556        2.1152        .76792E-07    .95539E-04
   5  Prefactor     3.1284        5.6589        .38464E-05   -.84204E-04
   6  norm          20.119        14.954        .25366E-06    .21600E-04
   7  Prefactor     .10000E-03    4.8439       -.95574E-08** at limit **
   8  Prefactor     15.264        20.645        .27173E-06    .28814E-04
   9  norm          .10000E-03    2.3283       -.87095E-07** at limit **
  10  Prefactor     .10000E-03    5.5044       -.55070E-07** at limit **
  11  Prefactor     .10000E-03    8.7097       -.86546E-07** at limit **
  12  Prefactor     3.2927        3.4697        .78157E-07    .20819E-04
  13  norm          .10000E-03    4.9422       -.40261E-07** at limit **
  14  Prefactor     .10000E-03    15.977        .25205E-07** at limit **
  15  norm          .10000E-03    1.6349       -.44746E-07** at limit **
  16  Prefactor     59.548        45.464        .37572E-06    .22135E-04
  17  Prefactor     .10000E-03    24.613       -.37478E-06** at limit **
  18  norm          .10132E-03    4.9309       -.56607E-06** at limit **
  19  Prefactor     28.600        15.400        .69029E-06    .19670E-03
  20  Prefactor     6.1845        7.6361       -.38318E-06    .26912E-04
  21  norm          3.6565        2.0374        .10930E-06    .20718E-03
  22  Prefactor     .10000E-03    34.708       -.39985E-07** at limit **
  23  Normalizat    .97312        .19830       -.33356E-05    .83886E-04
  24  Prefactor     .99907        .20747        .24412E-05    .19810E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 101.272
  Prefactor  = 31.5476
  Prefactor  = 0.0001
  norm       = 6.0556
  Prefactor  = 3.12841
  norm       = 20.1191
  Prefactor  = 0.0001
  Prefactor  = 15.2642
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.29267
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 59.5482
  Prefactor  = 0.0001
  norm       = 0.000101321
  Prefactor  = 28.6002
  Prefactor  = 6.18452
  norm       = 3.65652
  Prefactor  = 0.0001
  Normalizat = 0.973119
  Prefactor  = 0.999072
 **********
 **   18 **HESSE 
 **********

 FCN=   5516.407     FROM HESSE     STATUS=OK           401 CALLS     3132 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     101.27        69.341        .39950E-04   -1.3692    
   2  Prefactor     31.548        28.191        .71333E-04   -1.4584    
   3  Prefactor     .10000E-03    57.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.0556        2.1179        .61163E-04   -1.5216    
   5  Prefactor     3.1284        5.6848        .10934E-02   -1.5354    
   6  norm          20.119        14.982        .89294E-04   -1.4811    
   7  Prefactor     .10000E-03    4.8449        .15965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.264        20.701        .10250E-03   -1.4926    
   9  norm          .10000E-03    2.3535        .11064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.5170        .17017E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.7461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.2927        3.4662        .13557E-03   -1.5345    
  13  norm          .10000E-03    4.9450        .16126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.6374        .92743E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     59.548        45.469        .51993E-04   -1.4163    
  17  Prefactor     .10000E-03    24.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10132E-03    7.1972        .61891E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     28.600        15.478        .74920E-04   -1.4638    
  20  Prefactor     6.1845        7.6235        .16142E-03   -1.5211    
  21  norm          3.6565        2.0338        .72024E-04   -1.5326    
  22  Prefactor     .10000E-03    34.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .97312        .22803        .24138E-03   -.93936    
  24  Prefactor     .99907        .24214        .27177E-03   -.92760    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73476e-10
Minuit parameter uncertainties:
  1  69.3962
  2  28.2032
  3  7.22577e-05
  4  2.11791
  5  5.68578
  6  14.9849
  7  1.84268e-06
  8  20.7108
  9  8.38172e-06
  10  8.46376e-06
  11  1.40873e-05
  12  3.46641
  13  3.545e-06
  14  1.07282e-07
  15  4.46031e-06
  16  45.4956
  17  0.000120537
  18  0.00616736
  19  15.4805
  20  7.62466
  21  2.0338
  22  2.60571e-05
  23  0.228261
  24  0.242407
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.000e-04  8.382e-06  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:  9.991e-01  2.424e-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:  9.731e-01  2.283e-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.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.07e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/320488/likelihoodResults_498528001_498787201_4FGL_J1418.4+3543_daily_bin1000.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) = 5516.40854684
delta logL = -0.00202174407332

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5516.26494994
delta logL = 0.141575155675

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13709       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.2235       1.0000          .0000       5.0000    
     3 'Normalizat'    .93707       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0236       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=   5516.265     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      296 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13722        5.1688        .96866E-02    .26325E-02
   2  alpha         4.2231        3.5627        .50000        .54025E-04
   3  Normalizat    .93709        .30313E-01    .45374E-01    .56924E-05
   4  Prefactor     1.0235        .34690E-01    .60846E-01    .39648E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.137223
  alpha      = 4.22315
  Normalizat = 0.937091
  Prefactor  = 1.02355
 **********
 **   18 **HESSE 
 **********

 FCN=   5516.265     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      329 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .13722        24.571        .50381E-04   -1.5634    
   2  alpha         4.2231        4.2112        .41450E-01    .76047    
   3  Normalizat    .93709        .15398        .24557E-03   -.95169    
   4  Prefactor     1.0235        .17317        .26908E-03   -.91949    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.19767e-09
Minuit parameter uncertainties:
  1  3.67262
  2  14.1116
  3  0.154055
  4  0.173262
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/320488': 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) = 5516.26494979
delta logL = 0.141575313063

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  1.024e+00  1.733e-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:  9.371e-01  1.541e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/320488/cmap_HighResolution_498528001_498787201_4FGL_J1418.4+3543_daily_bin1000.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.07e-05', job_status='DONE', photon_flux_upper_limit='5.39e-08', time_completed='2021-09-09 08:29:59.775700', job_id='320488', GAL2='1.02', fit_tolerance='1e-08', EG2='0.94', EG='0.97', time_epoch_completed='1631201399.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.42e-01', ts2='0.31', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='1000' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:29:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 320488: <4FGL_J1418.4+3543_daily_bin1000> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin1000 214.623 35.7192 498528001 498787201 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 :                                   649.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             274.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            864 sec.

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

