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


Performing analysis on: 4FGL_J1418.4+3543_daily_bin1532
RA = 214.623, Dec = 35.7192
tmin = 636422401, tmax = 636681601
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='323541', job_status='RUN', time_executed='2021-09-09 08:28:51.847040', time_epoch_executed='1631201331.85' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='1532'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/323541

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/323541/ft1_4FGL_J1418.4+3543_daily_bin1532.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/323541/ft2_4FGL_J1418.4+3543_daily_bin1532.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/323541/ft1_4FGL_J1418.4+3543_daily_bin1532.fits outfile=/scratch/kocevski/323541/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1532.fits ra=214.623 dec=35.7192 rad=12.0 tmin=636422401.0 tmax=636681601.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.64
user 3.40
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/323541/ft2_4FGL_J1418.4+3543_daily_bin1532.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/323541/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1532.fits evtable="EVENTS" outfile="/scratch/kocevski/323541/ft1_filtered_4FGL_J1418.4+3543_daily_bin1532.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.50
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/323541/ft1_filtered_4FGL_J1418.4+3543_daily_bin1532.fits evtable="EVENTS" scfile=/scratch/kocevski/323541/ft2_4FGL_J1418.4+3543_daily_bin1532.fits sctable="SC_DATA" expcube=/scratch/kocevski/323541/ltcube_636422401_636681601_4FGL_J1418.4+3543_daily_bin1532.fits outfile=/scratch/kocevski/323541/expmap_636422401_636681601_4FGL_J1418.4+3543_daily_bin1532.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/323541/ltcube_636422401_636681601_4FGL_J1418.4+3543_daily_bin1532.fits
.....................!
real 191.27
user 186.12
sys 4.79

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/323541/ft1_filtered_4FGL_J1418.4+3543_daily_bin1532.fits scfile=/scratch/kocevski/323541/ft2_4FGL_J1418.4+3543_daily_bin1532.fits outfile=/scratch/kocevski/323541/cmap_636422401_636681601_4FGL_J1418.4+3543_daily_bin1532.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.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.368       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .40088       1.0000         .10000E-03   10000.    
     3 'Prefactor '    72.127       1.0000         .10000E-03   10000.    
     4 'norm      '    1.8588       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    12.415       1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.870       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10459E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.951       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.653       1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.9950       1.0000         .10000E-03   10000.    
    18 'norm      '    7.4222       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.1820       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.3238       1.0000         .10000E-03   10000.    
    21 'norm      '    .10725E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    50.354       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .75978       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.4123       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=   7154.270     FROM MIGRAD    STATUS=CONVERGED    554 CALLS     2734 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.310        68.519       -.66031E-04    .28051E-04
   2  Prefactor     .11783        11.821       -.11534E-05   -.14852E-04
   3  Prefactor     72.099        84.345       -.35256E-04    .47740E-04
   4  norm          1.8585        1.2541       -.22261E-06    .96667E-04
   5  Prefactor     .10000E-03    1.7548       -.18505E-06** at limit **
   6  norm          12.411        14.597        .26078E-05    .46986E-04
   7  Prefactor     19.866        17.336       -.27888E-05    .31749E-04
   8  Prefactor     .10000E-03    4.9545       -.79351E-07** at limit **
   9  norm          .10000E-03    2.2935       -.97619E-07** at limit **
  10  Prefactor     .10000E-03    19.405       -.56763E-06** at limit **
  11  Prefactor     .10000E-03    6.9054        .17381E-07** at limit **
  12  Prefactor     27.949        6.6047       -.11935E-05    .33552E-03
  13  norm          .10000E-03    7.8296       -.16289E-06** at limit **
  14  Prefactor     24.642        24.499       -.16887E-04    .24713E-04
  15  norm          .10000E-03    3.0196        .55710E-07** at limit **
  16  Prefactor     .10000E-03    36.330        .18504E-06** at limit **
  17  Prefactor     1.9821        75.142       -.34188E-04   -.53742E-04
  18  norm          7.4217        6.5541       -.83094E-07    .57618E-04
  19  Prefactor     8.1804        9.7430       -.65061E-05   -.43161E-04
  20  Prefactor     9.3176        10.033       -.50490E-05   -.59101E-03
  21  norm          .10000E-03    1.0545        .91119E-06** at limit **
  22  Prefactor     50.346        56.182       -.94341E-05   -.57378E-04
  23  Normalizat    .75996        .18282        .13102E-04   -.18543E-03
  24  Prefactor     1.4123        .19590        .76778E-06    .35701E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.3099
  Prefactor  = 0.117834
  Prefactor  = 72.0988
  norm       = 1.85855
  Prefactor  = 0.0001
  norm       = 12.4108
  Prefactor  = 19.8659
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.9487
  norm       = 0.0001
  Prefactor  = 24.6415
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.98206
  norm       = 7.42172
  Prefactor  = 8.18039
  Prefactor  = 9.31756
  norm       = 0.000100002
  Prefactor  = 50.3458
  Normalizat = 0.759958
  Prefactor  = 1.41233
 **********
 **   18 **HESSE 
 **********

 FCN=   7154.270     FROM HESSE     STATUS=OK           405 CALLS     3139 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.310        68.297        .79535E-04   -1.4701    
   2  Prefactor     .11783        22.345        .98090E-01   -1.5639    
   3  Prefactor     72.099        84.482        .47271E-04   -1.4008    
   4  norm          1.8585        1.2497        .75370E-04   -1.5435    
   5  Prefactor     .10000E-03    1.7648        .10937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          12.411        14.596        .11369E-03   -1.5003    
   7  Prefactor     19.866        17.311        .89853E-04   -1.4816    
   8  Prefactor     .10000E-03    4.9596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.3244        .12504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.844        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.9246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     27.949        6.6153        .75777E-04   -1.4650    
  13  norm          .10000E-03    7.8469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     24.642        24.487        .80678E-04   -1.4715    
  15  norm          .10000E-03    3.0385        .14349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    36.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.9821        76.088        .29328E-03   -1.5426    
  18  norm          7.4217        6.5545        .14721E-03   -1.5163    
  19  Prefactor     8.1804        9.7222        .14016E-03   -1.5136    
  20  Prefactor     9.3176        9.4929        .13125E-03   -1.5097    
  21  norm          .10000E-03    1.7950        .15673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     50.346        56.038        .56515E-04   -1.4288    
  23  Normalizat    .75996        .22017        .29256E-03   -1.0157    
  24  Prefactor     1.4123        .23866        .25629E-03   -.80026    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.41923e-09
Minuit parameter uncertainties:
  1  68.5092
  2  3.24513
  3  84.6235
  4  1.24968
  5  2.27926e-05
  6  14.6005
  7  17.3151
  8  1.23452e-05
  9  1.80083e-05
  10  4.64692e-05
  11  4.60857e-06
  12  6.61545
  13  2.12763e-05
  14  24.4969
  15  2.35169e-06
  16  4.04599e-05
  17  24.5942
  18  6.55511
  19  9.7241
  20  9.49444
  21  0.000120042
  22  56.0971
  23  0.220428
  24  0.238848
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.000e-04  1.801e-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.412e+00  2.388e-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.600e-01  2.204e-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.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.88e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/323541/likelihoodResults_636422401_636681601_4FGL_J1418.4+3543_daily_bin1532.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) = 7154.27160267
delta logL = -0.00204255301742

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7154.26956017
delta logL = -6.14481905359e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0137       1.0000          .0000       5.0000    
     3 'Normalizat'    .75998       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4123       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5780E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7154.270     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      244 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    262.62        .12506E-02** at limit **
   2  alpha         1.9751        3.9681        .50000       -.56821E-07
   3  Normalizat    .75997        .52264E-01    .29256E-03   -.15350E-04
   4  Prefactor     1.4123        .60649E-01    .25629E-03   -.20005E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.97505
  Normalizat = 0.759966
  Prefactor  = 1.41232
 **********
 **   18 **HESSE 
 **********

 FCN=   7154.270     FROM HESSE     STATUS=OK            29 CALLS      273 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.3200        .25012E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9751        2.9062        .50000       -.21155    
   3  Normalizat    .75997        .20371        .11702E-04   -1.0157    
   4  Prefactor     1.4123        .23642        .10252E-04   -.80026    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54786e-11
Minuit parameter uncertainties:
  1  1.94301e-06
  2  154.44
  3  0.203913
  4  0.236607
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/323541': 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) = 7154.26956007
delta logL = 4.15220711147e-08

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.000e-04  1.943e-06  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  1.975e+00  1.544e+02  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.412e+00  2.366e-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.600e-01  2.039e-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/323541/cmap_HighResolution_636422401_636681601_4FGL_J1418.4+3543_daily_bin1532.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.88e-05', job_status='DONE', photon_flux_upper_limit='5.07e-08', time_completed='2021-09-09 08:40:57.437682', job_id='323541', GAL2='1.41', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1631202057.44', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.41', dlogl='4.15e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='1532' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:40:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 323541: <4FGL_J1418.4+3543_daily_bin1532> in cluster <slac> Done

Job <4FGL_J1418.4+3543_daily_bin1532> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Thu Sep  9 08:25:26 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 08:25:27 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:25:27 2021
Terminated at Thu Sep  9 08:40:58 2021
Results reported at Thu Sep  9 08:40:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin1532 214.623 35.7192 636422401 636681601 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 :                                   721.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             257.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            932 sec.

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

