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


Performing analysis on: 4FGL_J1418.4+3543_daily_bin1147
RA = 214.623, Dec = 35.7192
tmin = 536630401, tmax = 536889601
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='320711', job_status='RUN', time_executed='2021-09-09 08:16:12.007916', time_epoch_executed='1631200572.01' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='1147'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/320711

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/320711/ft1_4FGL_J1418.4+3543_daily_bin1147.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/320711/ft2_4FGL_J1418.4+3543_daily_bin1147.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/320711/ft1_4FGL_J1418.4+3543_daily_bin1147.fits outfile=/scratch/kocevski/320711/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1147.fits ra=214.623 dec=35.7192 rad=12.0 tmin=536630401.0 tmax=536889601.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.59
user 3.37
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/320711/ft2_4FGL_J1418.4+3543_daily_bin1147.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/320711/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1147.fits evtable="EVENTS" outfile="/scratch/kocevski/320711/ft1_filtered_4FGL_J1418.4+3543_daily_bin1147.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.52
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/320711/ft1_filtered_4FGL_J1418.4+3543_daily_bin1147.fits evtable="EVENTS" scfile=/scratch/kocevski/320711/ft2_4FGL_J1418.4+3543_daily_bin1147.fits sctable="SC_DATA" expcube=/scratch/kocevski/320711/ltcube_536630401_536889601_4FGL_J1418.4+3543_daily_bin1147.fits outfile=/scratch/kocevski/320711/expmap_536630401_536889601_4FGL_J1418.4+3543_daily_bin1147.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/320711/ltcube_536630401_536889601_4FGL_J1418.4+3543_daily_bin1147.fits
.....................!
real 192.88
user 187.64
sys 4.85

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/320711/ft1_filtered_4FGL_J1418.4+3543_daily_bin1147.fits scfile=/scratch/kocevski/320711/ft2_4FGL_J1418.4+3543_daily_bin1147.fits outfile=/scratch/kocevski/320711/cmap_536630401_536889601_4FGL_J1418.4+3543_daily_bin1147.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/320711/ft1_filtered_4FGL_J1418.4+3543_daily_bin1147.fits scfile=/scratch/kocevski/320711/ft2_4FGL_J1418.4+3543_daily_bin1147.fits outfile=/scratch/kocevski/320711/cmap_HighResolution_536630401_536889601_4FGL_J1418.4+3543_daily_bin1147.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    49.749       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    6.3551       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.456       1.0000         .10000E-03   10000.    
    13 'norm      '    .10099E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .11719E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    38.743       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.8306       1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.972       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .41838       1.0000         .10000E-03   10000.    
    22 'Prefactor '    25.824       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .94540       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .90058       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=   6502.432     FROM MIGRAD    STATUS=CONVERGED    524 CALLS     2667 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     49.750        47.018        .74938E-06   -.20485E-04
   2  Prefactor     .10000E-03    28.350       -.13279E-05** at limit **
   3  Prefactor     .10000E-03    26.903        .54690E-05** at limit **
   4  norm          6.3554        1.7946       -.91291E-07   -.62781E-04
   5  Prefactor     .10000E-03    3.1861       -.18305E-06** at limit **
   6  norm          .10000E-03    3.9382       -.20241E-07** at limit **
   7  Prefactor     .10000E-03    8.3539       -.41725E-06** at limit **
   8  Prefactor     .10000E-03    11.834        .74521E-05** at limit **
   9  norm          .10000E-03    1.8799       -.49845E-07** at limit **
  10  Prefactor     .10000E-03    12.896       -.51645E-05** at limit **
  11  Prefactor     .10000E-03    12.808       -.40231E-05** at limit **
  12  Prefactor     20.455        5.8528       -.22747E-06   -.10796E-02
  13  norm          .10000E-03    28.578       -.36437E-05** at limit **
  14  Prefactor     .10000E-03    12.405        .11417E-05** at limit **
  15  norm          .10004E-03    3.6991        .65899E-05** at limit **
  16  Prefactor     38.704        45.110       -.51097E-04   -.50627E-04
  17  Prefactor     .10000E-03    20.865        .15573E-05** at limit **
  18  norm          6.8293        6.1955       -.59776E-08   -.46722E-03
  19  Prefactor     22.966        14.772       -.13414E-05   -.70284E-03
  20  Prefactor     .10000E-03    1.8964        .36749E-07** at limit **
  21  norm          .41864        1.0489       -.17653E-06   -.13872E-02
  22  Prefactor     25.822        57.933       -.34838E-05    .24741E-05
  23  Normalizat    .94536        .15956        .19138E-05   -.12626E-02
  24  Prefactor     .90056        .17441        .18759E-05   -.85649E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 49.7499
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.35537
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 20.4555
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.000100038
  Prefactor  = 38.7043
  Prefactor  = 0.0001
  norm       = 6.82928
  Prefactor  = 22.9656
  Prefactor  = 0.0001
  norm       = 0.418636
  Prefactor  = 25.8221
  Normalizat = 0.945359
  Prefactor  = 0.90056
 **********
 **   18 **HESSE 
 **********

 FCN=   6502.432     FROM HESSE     STATUS=OK           385 CALLS     3052 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     49.750        47.043        .56856E-04   -1.4296    
   2  Prefactor     .10000E-03    28.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    26.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.3554        1.7971        .55463E-04   -1.5204    
   5  Prefactor     .10000E-03    3.2978        .28080E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.9432        .15628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.3800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.8968        .10791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     20.455        5.8849        .88557E-04   -1.4803    
  13  norm          .10000E-03    29.342        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10004E-03    29.651        .28856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     38.704        45.265        .64393E-04   -1.4463    
  17  Prefactor     .10000E-03    20.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.8293        6.1876        .15352E-03   -1.5185    
  19  Prefactor     22.966        14.684        .83573E-04   -1.4749    
  20  Prefactor     .10000E-03    1.8987        .10842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .41864        1.0087        .12154E-03   -1.5579    
  22  Prefactor     25.822        57.213        .78830E-04   -1.4691    
  23  Normalizat    .94536        .18639        .22996E-03   -.94884    
  24  Prefactor     .90056        .20458        .26573E-03   -.96122    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.71255e-09
Minuit parameter uncertainties:
  1  47.0777
  2  9.08905e-05
  3  0.000220581
  4  1.79709
  5  3.25439e-05
  6  4.59786e-06
  7  7.70928e-06
  8  0.000210804
  9  2.61665e-06
  10  0.000239458
  11  0.000248903
  12  5.88509
  13  0.00037514
  14  9.90235e-05
  15  0.00211084
  16  45.3047
  17  9.156e-05
  18  6.18814
  19  14.6868
  20  7.73226e-06
  21  1.00871
  22  57.3353
  23  0.186521
  24  0.204752
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.000e-04  2.617e-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.006e-01  2.048e-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.454e-01  1.865e-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.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.68e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/320711/likelihoodResults_536630401_536889601_4FGL_J1418.4+3543_daily_bin1147.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) = 6502.43453553
delta logL = -0.0025062572895

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6502.00375621
delta logL = 0.428273060719

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .23593       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.3093       1.0000          .0000       5.0000    
     3 'Normalizat'    .88573       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94041       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=   6502.004     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      326 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .23652        3.9146        .92807E-02    .19423E-02
   2  alpha         4.3064        4.5840        .50000        .55425E-04
   3  Normalizat    .88649        .30766E-01    .44719E-01    .61546E-05
   4  Prefactor     .93973        .34997E-01    .45518E-01    .16738E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.236521
  alpha      = 4.30635
  Normalizat = 0.886493
  Prefactor  = 0.939729
 **********
 **   18 **HESSE 
 **********

 FCN=   6502.004     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      359 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .23652        13.665        .41404E-04   -1.5611    
   2  alpha         4.3064        2.5847        .28390E-01    .80747    
   3  Normalizat    .88649        .14654        .23629E-03   -.96936    
   4  Prefactor     .93973        .16284        .26060E-03   -.94766    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.39804e-06
Minuit parameter uncertainties:
  1  3.59567
  2  8.05904
  3  0.14661
  4  0.162923
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/320711': 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) = 6502.00374651
delta logL = 0.428282763119

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  9.397e-01  1.629e-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.865e-01  1.466e-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/320711/cmap_HighResolution_536630401_536889601_4FGL_J1418.4+3543_daily_bin1147.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.68e-05', job_status='DONE', photon_flux_upper_limit='4.71e-08', time_completed='2021-09-09 08:28:06.329201', job_id='320711', GAL2='0.94', fit_tolerance='1e-08', EG2='0.89', EG='0.95', time_epoch_completed='1631201286.33', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='4.28e-01', ts2='0.94', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='1147' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:28:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 320711: <4FGL_J1418.4+3543_daily_bin1147> in cluster <slac> Done

Job <4FGL_J1418.4+3543_daily_bin1147> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep  9 08:15:52 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 08:15:54 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:54 2021
Terminated at Thu Sep  9 08:28:07 2021
Results reported at Thu Sep  9 08:28:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin1147 214.623 35.7192 536630401 536889601 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 :                                   688.17 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   732 sec.
    Turnaround time :                            735 sec.

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

