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


Performing analysis on: 4FGL_J1418.4+3543_daily_bin1007
RA = 214.623, Dec = 35.7192
tmin = 500342401, tmax = 500601601
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='320498', job_status='RUN', time_executed='2021-09-09 08:18:18.113485', time_epoch_executed='1631200698.11' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='1007'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/320498

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/320498/ft1_4FGL_J1418.4+3543_daily_bin1007.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/320498/ft2_4FGL_J1418.4+3543_daily_bin1007.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/320498/ft1_4FGL_J1418.4+3543_daily_bin1007.fits outfile=/scratch/kocevski/320498/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1007.fits ra=214.623 dec=35.7192 rad=12.0 tmin=500342401.0 tmax=500601601.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.63
user 4.41
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/320498/ft2_4FGL_J1418.4+3543_daily_bin1007.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/320498/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1007.fits evtable="EVENTS" outfile="/scratch/kocevski/320498/ft1_filtered_4FGL_J1418.4+3543_daily_bin1007.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/320498/ft1_filtered_4FGL_J1418.4+3543_daily_bin1007.fits" evtable="EVENTS" scfile=/scratch/kocevski/320498/ft2_4FGL_J1418.4+3543_daily_bin1007.fits sctable="SC_DATA" outfile=/scratch/kocevski/320498/ltcube_500342401_500601601_4FGL_J1418.4+3543_daily_bin1007.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/320498/ft2_4FGL_J1418.4+3543_daily_bin1007.fits
.....................!
real 12.04
user 11.66
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/320498/ft1_filtered_4FGL_J1418.4+3543_daily_bin1007.fits evtable="EVENTS" scfile=/scratch/kocevski/320498/ft2_4FGL_J1418.4+3543_daily_bin1007.fits sctable="SC_DATA" expcube=/scratch/kocevski/320498/ltcube_500342401_500601601_4FGL_J1418.4+3543_daily_bin1007.fits outfile=/scratch/kocevski/320498/expmap_500342401_500601601_4FGL_J1418.4+3543_daily_bin1007.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/320498/ltcube_500342401_500601601_4FGL_J1418.4+3543_daily_bin1007.fits
.....................!
real 190.39
user 185.79
sys 4.27

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/320498/ft1_filtered_4FGL_J1418.4+3543_daily_bin1007.fits scfile=/scratch/kocevski/320498/ft2_4FGL_J1418.4+3543_daily_bin1007.fits outfile=/scratch/kocevski/320498/cmap_500342401_500601601_4FGL_J1418.4+3543_daily_bin1007.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/320498/ft1_filtered_4FGL_J1418.4+3543_daily_bin1007.fits scfile=/scratch/kocevski/320498/ft2_4FGL_J1418.4+3543_daily_bin1007.fits outfile=/scratch/kocevski/320498/cmap_HighResolution_500342401_500601601_4FGL_J1418.4+3543_daily_bin1007.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    63.227       1.0000         .10000E-03   10000.    
     2 'Prefactor '    57.772       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.0494       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.9728       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.387       1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13802E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .30903       1.0000         .10000E-03   10000.    
    15 'norm      '    .26043E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12281E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.9592       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.917       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.0389       1.0000         .10000E-03   10000.    
    21 'norm      '    .70495       1.0000         .10000E-03   10000.    
    22 'Prefactor '    132.66       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .99920       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0187       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=   5061.631     FROM MIGRAD    STATUS=CONVERGED    573 CALLS     2765 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     63.204        75.813       -.21479E-04    .23127E-04
   2  Prefactor     57.767        35.580       -.33952E-05    .17639E-04
   3  Prefactor     .10000E-03    102.20       -.76133E-04** at limit **
   4  norm          5.0489        2.3014       -.36769E-06   -.17967E-02
   5  Prefactor     2.9724        3.9618       -.25845E-07   -.16803E-03
   6  norm          .10000E-03    5.1328        .18636E-08** at limit **
   7  Prefactor     .10000E-03    7.7541        .22978E-06** at limit **
   8  Prefactor     16.378        27.216        .71086E-05    .78562E-04
   9  norm          .10000E-03    1.3702        .42107E-08** at limit **
  10  Prefactor     .10000E-03    10.660        .50592E-06** at limit **
  11  Prefactor     .10000E-03    15.497       -.62017E-06** at limit **
  12  Prefactor     .10000E-03    1.9317       -.18632E-06** at limit **
  13  norm          .10000E-03    9.8420       -.48506E-06** at limit **
  14  Prefactor     .17783        15.556       -.44260E-05    .36628E-03
  15  norm          .10005E-03    3.3886        .18442E-06** at limit **
  16  Prefactor     .10001E-03    112.37        .94811E-04** at limit **
  17  Prefactor     9.9431        34.611       -.58841E-05   -.45506E-05
  18  norm          .10000E-03    2.8692        .75194E-07** at limit **
  19  Prefactor     25.915        16.098       -.22918E-06   -.15447E-04
  20  Prefactor     6.0382        6.8152       -.62461E-06   -.90847E-03
  21  norm          .70522        1.9725        .13254E-06   -.90153E-03
  22  Prefactor     132.65        111.00       -.10263E-04   -.27578E-05
  23  Normalizat    .99943        .19690        .16388E-05    .23733E-03
  24  Prefactor     1.0184        .20900        .10106E-05    .94699E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 63.2036
  Prefactor  = 57.7669
  Prefactor  = 0.0001
  norm       = 5.04886
  Prefactor  = 2.97235
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.3778
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.177826
  norm       = 0.000100054
  Prefactor  = 0.000100013
  Prefactor  = 9.94313
  norm       = 0.0001
  Prefactor  = 25.9149
  Prefactor  = 6.03819
  norm       = 0.70522
  Prefactor  = 132.648
  Normalizat = 0.999435
  Prefactor  = 1.01843
 **********
 **   18 **HESSE 
 **********

 FCN=   5061.631     FROM HESSE     STATUS=OK           407 CALLS     3172 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     63.204        75.853        .50466E-04   -1.4116    
   2  Prefactor     57.767        35.593        .52781E-04   -1.4186    
   3  Prefactor     .10000E-03    102.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.0489        2.3077        .34953E-03   -1.5259    
   5  Prefactor     2.9724        3.9486        .15633E-03   -1.5363    
   6  norm          .10000E-03    5.1350        .15742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.7605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.378        27.390        .98941E-04   -1.4898    
   9  norm          .10000E-03    1.3753        .81319E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.5386        .19041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    9.8952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .17783        29.320        .94140E-01   -1.5624    
  15  norm          .10005E-03    30.905        .25229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    112.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.9431        34.645        .12697E-03   -1.5077    
  18  norm          .10000E-03    2.8697        .11769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     25.915        16.056        .78688E-04   -1.4689    
  20  Prefactor     6.0382        6.7403        .81694E-03   -1.5216    
  21  norm          .70522        1.8996        .14420E-03   -1.5540    
  22  Prefactor     132.65        109.14        .17481E-03   -1.3399    
  23  Normalizat    .99943        .23645        .24115E-03   -.93049    
  24  Prefactor     1.0184        .25126        .26783E-03   -.92118    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.8583e-09
Minuit parameter uncertainties:
  1  75.9692
  2  35.6058
  3  0.000281703
  4  2.30775
  5  3.94892
  6  3.51242e-06
  7  5.99246e-06
  8  27.4108
  9  2.24765e-06
  10  2.67904e-05
  11  4.33323e-05
  12  3.01494e-05
  13  1.40722e-05
  14  4.56775
  15  0.00257497
  16  0.00244413
  17  34.715
  18  2.02537e-07
  19  16.0587
  20  6.74118
  21  1.89978
  22  109.308
  23  0.236701
  24  0.251546
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.000e-04  2.248e-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:  1.018e+00  2.515e-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.994e-01  2.367e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/320498/likelihoodResults_500342401_500601601_4FGL_J1418.4+3543_daily_bin1007.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) = 5061.63489023
delta logL = -0.00339341424296

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5061.63149684
delta logL = -1.97469489649e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0151       1.0000          .0000       5.0000    
     3 'Normalizat'    .99945       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0184       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=   5061.631     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      235 TOTAL
                     EDM=   .34E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.5945        .81322E-03** at limit **
   2  alpha         1.9879        2.6803        .16870       -.28304E-08
   3  Normalizat    .99943        .22112        .24115E-03   -.33472E-05
   4  Prefactor     1.0184        .24872        .26782E-03   -.46693E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.98786
  Normalizat = 0.999432
  Prefactor  = 1.01843
 **********
 **   18 **HESSE 
 **********

 FCN=   5061.631     FROM HESSE     STATUS=OK            23 CALLS      258 TOTAL
                     EDM=   .30E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.3762        .16264E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9879        3.3684        .67480E-02   -.20632    
   3  Normalizat    .99943        .22136        .96459E-05   -.93049    
   4  Prefactor     1.0184        .24899        .10713E-04   -.92118    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.95946e-13
Minuit parameter uncertainties:
  1  1.33929e-06
  2  142.818
  3  0.221565
  4  0.249275
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/320498': 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) = 5061.6314968
delta logL = 1.93713276531e-08

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.000e-04  1.339e-06  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  1.988e+00  1.428e+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.018e+00  2.493e-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.994e-01  2.216e-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/320498/cmap_HighResolution_500342401_500601601_4FGL_J1418.4+3543_daily_bin1007.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.42e-05', job_status='DONE', photon_flux_upper_limit='4.25e-08', time_completed='2021-09-09 08:28:41.821467', job_id='320498', GAL2='1.02', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1631201321.82', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='1.94e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='1007' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:28:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 320498: <4FGL_J1418.4+3543_daily_bin1007> in cluster <slac> Done

Job <4FGL_J1418.4+3543_daily_bin1007> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep  9 08:15:37 2021
Job was executed on host(s) <bullet0299>, 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:28:42 2021
Results reported at Thu Sep  9 08:28:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin1007 214.623 35.7192 500342401 500601601 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 :                                   613.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            785 sec.

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

