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


Performing analysis on: 4FGL_J1418.4+3543_daily_bin1505
RA = 214.623, Dec = 35.7192
tmin = 629424001, tmax = 629683201
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='323502', job_status='RUN', time_executed='2021-09-09 08:27:50.550933', time_epoch_executed='1631201270.55' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='1505'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/323502

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/323502/ft1_4FGL_J1418.4+3543_daily_bin1505.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/323502/ft2_4FGL_J1418.4+3543_daily_bin1505.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/323502/ft1_4FGL_J1418.4+3543_daily_bin1505.fits outfile=/scratch/kocevski/323502/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1505.fits ra=214.623 dec=35.7192 rad=12.0 tmin=629424001.0 tmax=629683201.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.52
user 3.29
sys 0.21

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/323502/ft1_filtered_4FGL_J1418.4+3543_daily_bin1505.fits evtable="EVENTS" scfile=/scratch/kocevski/323502/ft2_4FGL_J1418.4+3543_daily_bin1505.fits sctable="SC_DATA" expcube=/scratch/kocevski/323502/ltcube_629424001_629683201_4FGL_J1418.4+3543_daily_bin1505.fits outfile=/scratch/kocevski/323502/expmap_629424001_629683201_4FGL_J1418.4+3543_daily_bin1505.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/323502/ltcube_629424001_629683201_4FGL_J1418.4+3543_daily_bin1505.fits
.....................!
real 189.77
user 184.67
sys 4.73

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/323502/ft1_filtered_4FGL_J1418.4+3543_daily_bin1505.fits scfile=/scratch/kocevski/323502/ft2_4FGL_J1418.4+3543_daily_bin1505.fits outfile=/scratch/kocevski/323502/cmap_629424001_629683201_4FGL_J1418.4+3543_daily_bin1505.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/323502/ft1_filtered_4FGL_J1418.4+3543_daily_bin1505.fits scfile=/scratch/kocevski/323502/ft2_4FGL_J1418.4+3543_daily_bin1505.fits outfile=/scratch/kocevski/323502/cmap_HighResolution_629424001_629683201_4FGL_J1418.4+3543_daily_bin1505.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.387       1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.681       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    7.7701       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.5113       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.6542       1.0000         .10000E-03   10000.    
     9 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.431       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.3450       1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    58.649       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.2526       1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.693       1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.192       1.0000         .10000E-03   10000.    
    21 'norm      '    2.4672       1.0000         .10000E-03   10000.    
    22 'Prefactor '    49.951       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .88518       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .79702       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=   5219.634     FROM MIGRAD    STATUS=CONVERGED    522 CALLS     2644 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.386        37.713       -.77396E-06   -.27173E-04
   2  Prefactor     21.680        16.260       -.68239E-07   -.62078E-05
   3  Prefactor     .10000E-03    42.930       -.28073E-05** at limit **
   4  norm          7.7700        2.1762       -.13709E-07    .34758E-04
   5  Prefactor     3.5114        4.1999       -.42648E-06   -.22172E-03
   6  norm          .10000E-03    5.0540        .14572E-06** at limit **
   7  Prefactor     .10000E-03    10.503       -.88609E-05** at limit **
   8  Prefactor     4.6536        11.821        .10535E-05   -.56794E-03
   9  norm          .10000E-03    2.5190        .13013E-06** at limit **
  10  Prefactor     11.428        11.751       -.18815E-07    .43918E-04
  11  Prefactor     .10000E-03    18.805        .17756E-05** at limit **
  12  Prefactor     4.3451        3.3240       -.12777E-06   -.11436E-03
  13  norm          .10000E-03    6.3302       -.18170E-06** at limit **
  14  Prefactor     .10000E-03    10.098        .51444E-05** at limit **
  15  norm          .10000E-03    2.0185       -.85962E-07** at limit **
  16  Prefactor     58.647        40.112       -.10852E-05   -.62570E-04
  17  Prefactor     .10000E-03    10.359        .21552E-05** at limit **
  18  norm          2.2522        3.4537        .16748E-05   -.25845E-02
  19  Prefactor     22.692        12.473       -.38183E-07    .56360E-05
  20  Prefactor     20.191        9.7874       -.18734E-07    .12377E-04
  21  norm          2.4672        1.8225        .59640E-07   -.17971E-04
  22  Prefactor     49.949        67.458       -.10467E-05   -.14581E-04
  23  Normalizat    .88522        .16743        .28767E-06    .34877E-04
  24  Prefactor     .79696        .18682        .13449E-06    .33909E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.3862
  Prefactor  = 21.6804
  Prefactor  = 0.0001
  norm       = 7.77003
  Prefactor  = 3.51136
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 4.65363
  norm       = 0.0001
  Prefactor  = 11.4276
  Prefactor  = 0.0001
  Prefactor  = 4.34505
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 58.6471
  Prefactor  = 0.0001
  norm       = 2.2522
  Prefactor  = 22.6923
  Prefactor  = 20.1914
  norm       = 2.4672
  Prefactor  = 49.9491
  Normalizat = 0.885224
  Prefactor  = 0.796963
 **********
 **   18 **HESSE 
 **********

 FCN=   5219.634     FROM HESSE     STATUS=OK           397 CALLS     3041 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.386        37.733        .63867E-04   -1.4452    
   2  Prefactor     21.680        16.273        .86022E-04   -1.4776    
   3  Prefactor     .10000E-03    43.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          7.7700        2.1804        .54292E-04   -1.5150    
   5  Prefactor     3.5114        4.1994        .15283E-03   -1.5333    
   6  norm          .10000E-03    5.0619        .15862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.6536        12.283        .93274E-03   -1.5276    
   9  norm          .10000E-03    2.5763        .11185E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.428        11.742        .11849E-03   -1.5032    
  11  Prefactor     .10000E-03    19.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.3451        3.3291        .11023E-03   -1.5291    
  13  norm          .10000E-03    6.3351        .17747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.0279        .10023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     58.647        40.156        .26193E-03   -1.4175    
  17  Prefactor     .10000E-03    10.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.2522        4.9678        .11709E-02   -1.5408    
  19  Prefactor     22.692        12.483        .84085E-04   -1.4755    
  20  Prefactor     20.191        9.7883        .89135E-04   -1.4809    
  21  norm          2.4672        1.8160        .75799E-04   -1.5394    
  22  Prefactor     49.949        67.443        .56741E-04   -1.4293    
  23  Normalizat    .88522        .19793        .22078E-03   -.96981    
  24  Prefactor     .79696        .22004        .26576E-03   -.99840    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.92433e-09
Minuit parameter uncertainties:
  1  37.7555
  2  16.2762
  3  0.000270685
  4  2.18038
  5  4.19975
  6  3.78348e-06
  7  0.000414668
  8  12.2893
  9  2.06811e-06
  10  11.7441
  11  0.000108042
  12  3.32928
  13  6.81532e-06
  14  0.000228871
  15  1.62111e-06
  16  40.1743
  17  9.5517e-05
  18  4.96867
  19  12.4846
  20  9.78904
  21  1.81602
  22  67.5462
  23  0.198091
  24  0.220286
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.000e-04  2.068e-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:  7.970e-01  2.203e-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:  8.852e-01  1.981e-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.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.73e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/323502/likelihoodResults_629424001_629683201_4FGL_J1418.4+3543_daily_bin1505.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) = 5219.63606961
delta logL = -0.00184937593986

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5219.63421928
delta logL = 9.53136805038e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10190E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0575       1.0000          .0000       5.0000    
     3 'Normalizat'    .88521       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79701       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=   5219.120     FROM MIGRAD    STATUS=CONVERGED    165 CALLS      305 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .61869E-01    2.9069        .24115E-02    .43980E-02
   2  alpha         5.0000        4.5197        .50000    ** at limit **
   3  Normalizat    .81678        .91741E-01    .22078E-02    .30714E-03
   4  Prefactor     .84761        .10295        .26576E-02    .40411E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0618688
  alpha      = 5
  Normalizat = 0.816778
  Prefactor  = 0.847612
 **********
 **   18 **HESSE 
 **********

 FCN=   5219.120     FROM HESSE     STATUS=OK            31 CALLS      336 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .61869E-01    .77525E-01    .17833E-04   -1.5658    
   2  alpha         5.0000        3.5081        .50000        1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .81678        .20421        .88312E-04   -.99449    
   4  Prefactor     .84761        .22708        .10630E-03   -.97996    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35037e-10
Minuit parameter uncertainties:
  1  0.0775255
  2  0.000273094
  3  0.204399
  4  0.227334
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/323502': 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) = 5219.12032268
delta logL = 0.513897550215

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  6.187e-02  7.753e-02  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  5.000e+00  2.731e-04  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:  8.476e-01  2.273e-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:  8.168e-01  2.044e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.12
Ra Dec: 214.623 35.719
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 4.83e-08 +/- 6.02e-08
Energy Flux (Free Index): 6.54e-06 +/- 8.17e-06

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/323502/cmap_HighResolution_629424001_629683201_4FGL_J1418.4+3543_daily_bin1505.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.73e-05', comment='SUCCESS', energy_flux2='6.54e-06', dlogl='5.14e-01', photon_flux2='4.83e-08', job_status='DONE', time_completed='2021-09-09 08:38:22.785883', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='4.79e-08', energy_flux_error2='8.17e-06', EG='0.89', time_epoch_completed='1631201902.79', return_code='0', job_id='323502', GAL2='0.85', EG2='0.82', return_code2='0', photon_flux_error2='6.02e-08', ts2='1.12', photon_index='2.02' WHERE bin_id='1505' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:38:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 323502: <4FGL_J1418.4+3543_daily_bin1505> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin1505 214.623 35.7192 629424001 629683201 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 :                                   618.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            780 sec.

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

