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


Performing analysis on: 4FGL_J1418.4+3543_daily_bin1113
RA = 214.623, Dec = 35.7192
tmin = 527817601, tmax = 528076801
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='320662', job_status='RUN', time_executed='2021-09-09 08:19:15.406838', time_epoch_executed='1631200755.41' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='1113'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/320662

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/320662/ft1_4FGL_J1418.4+3543_daily_bin1113.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/320662/ft2_4FGL_J1418.4+3543_daily_bin1113.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/320662/ft1_4FGL_J1418.4+3543_daily_bin1113.fits outfile=/scratch/kocevski/320662/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1113.fits ra=214.623 dec=35.7192 rad=12.0 tmin=527817601.0 tmax=528076801.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.55
user 3.29
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/320662/ft2_4FGL_J1418.4+3543_daily_bin1113.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/320662/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1113.fits evtable="EVENTS" outfile="/scratch/kocevski/320662/ft1_filtered_4FGL_J1418.4+3543_daily_bin1113.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/320662/ft1_filtered_4FGL_J1418.4+3543_daily_bin1113.fits" evtable="EVENTS" scfile=/scratch/kocevski/320662/ft2_4FGL_J1418.4+3543_daily_bin1113.fits sctable="SC_DATA" outfile=/scratch/kocevski/320662/ltcube_527817601_528076801_4FGL_J1418.4+3543_daily_bin1113.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/320662/ft2_4FGL_J1418.4+3543_daily_bin1113.fits
.....................!
real 11.58
user 11.23
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/320662/ft1_filtered_4FGL_J1418.4+3543_daily_bin1113.fits evtable="EVENTS" scfile=/scratch/kocevski/320662/ft2_4FGL_J1418.4+3543_daily_bin1113.fits sctable="SC_DATA" expcube=/scratch/kocevski/320662/ltcube_527817601_528076801_4FGL_J1418.4+3543_daily_bin1113.fits outfile=/scratch/kocevski/320662/expmap_527817601_528076801_4FGL_J1418.4+3543_daily_bin1113.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/320662/ltcube_527817601_528076801_4FGL_J1418.4+3543_daily_bin1113.fits
.....................!
real 190.39
user 185.34
sys 4.64

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/320662/ft1_filtered_4FGL_J1418.4+3543_daily_bin1113.fits scfile=/scratch/kocevski/320662/ft2_4FGL_J1418.4+3543_daily_bin1113.fits outfile=/scratch/kocevski/320662/cmap_527817601_528076801_4FGL_J1418.4+3543_daily_bin1113.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/320662/ft1_filtered_4FGL_J1418.4+3543_daily_bin1113.fits scfile=/scratch/kocevski/320662/ft2_4FGL_J1418.4+3543_daily_bin1113.fits outfile=/scratch/kocevski/320662/cmap_HighResolution_527817601_528076801_4FGL_J1418.4+3543_daily_bin1113.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    48.456       1.0000         .10000E-03   10000.    
     4 'norm      '    4.2257       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.7066       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.5557       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12327E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.0094       1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.948       1.0000         .10000E-03   10000.    
    17 'Prefactor '    29.177       1.0000         .10000E-03   10000.    
    18 'norm      '    21.951       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11706E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.4965       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.425       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2623       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .61657       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=   5582.383     FROM MIGRAD    STATUS=CONVERGED    528 CALLS     2708 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.166        .41981E-06** at limit **
   2  Prefactor     .10000E-03    10.078       -.21539E-05** at limit **
   3  Prefactor     48.463        66.207        .87468E-05   -.20371E-05
   4  norm          4.2258        1.7435       -.37045E-07   -.12496E-03
   5  Prefactor     .10000E-03    3.8323       -.22011E-07** at limit **
   6  norm          5.7069        15.509       -.11744E-05   -.66420E-04
   7  Prefactor     .10000E-03    5.7011       -.90940E-06** at limit **
   8  Prefactor     .10000E-03    7.3165       -.16053E-05** at limit **
   9  norm          .10000E-03    2.6269       -.22788E-07** at limit **
  10  Prefactor     .10000E-03    9.5564        .42780E-06** at limit **
  11  Prefactor     3.5607        11.547       -.12276E-05   -.15037E-03
  12  Prefactor     .10000E-03    2.6947        .95971E-06** at limit **
  13  norm          .10000E-03    8.8663        .20604E-05** at limit **
  14  Prefactor     .10000E-03    8.1681        .89760E-06** at limit **
  15  norm          4.0088        5.9566       -.52577E-06   -.42729E-03
  16  Prefactor     19.950        48.634        .36900E-05   -.51167E-05
  17  Prefactor     29.173        36.000       -.51650E-05   -.33130E-04
  18  norm          21.945        11.261        .24131E-06    .62974E-05
  19  Prefactor     .10000E-03    34.907       -.96458E-07** at limit **
  20  Prefactor     .10000E-03    6.6242       -.79034E-06** at limit **
  21  norm          3.4965        1.8217        .14381E-06   -.12021E-03
  22  Prefactor     11.419        75.853       -.14954E-04   -.22580E-05
  23  Normalizat    1.2623        .17999       -.25885E-06   -.13552E-03
  24  Prefactor     .61657        .19513        .55712E-06   -.11588E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.4634
  norm       = 4.22581
  Prefactor  = 0.0001
  norm       = 5.70687
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.56072
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.00879
  Prefactor  = 19.9503
  Prefactor  = 29.1729
  norm       = 21.9445
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.49652
  Prefactor  = 11.4188
  Normalizat = 1.26227
  Prefactor  = 0.61657
 **********
 **   18 **HESSE 
 **********

 FCN=   5582.383     FROM HESSE     STATUS=OK           395 CALLS     3103 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     48.463        66.225        .57605E-04   -1.4315    
   4  norm          4.2258        1.7431        .61136E-04   -1.5297    
   5  Prefactor     .10000E-03    3.9323        .28529E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.7069        15.521        .16815E-03   -1.5230    
   7  Prefactor     .10000E-03    5.6996        .17418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.3350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.7068        .23635E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.6104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.5607        11.578        .21434E-03   -1.5331    
  12  Prefactor     .10000E-03    6.0001        .23310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    8.8954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.1732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.0088        5.9914        .20141E-03   -1.5308    
  16  Prefactor     19.950        48.658        .89677E-04   -1.4814    
  17  Prefactor     29.173        36.157        .74172E-04   -1.4627    
  18  norm          21.945        11.257        .85492E-04   -1.4771    
  19  Prefactor     .10000E-03    36.098        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.6692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.4965        1.8111        .68279E-04   -1.5334    
  22  Prefactor     11.419        75.492        .11852E-03   -1.5032    
  23  Normalizat    1.2623        .20788        .20154E-03   -.84700    
  24  Prefactor     .61657        .22450        .31212E-03   -1.0689    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.07443e-10
Minuit parameter uncertainties:
  1  7.54482e-06
  2  9.93912e-07
  3  66.3258
  4  1.74308
  5  2.43663e-06
  6  15.5319
  7  1.65831e-06
  8  1.44117e-06
  9  8.81639e-07
  10  1.46798e-05
  11  11.585
  12  0.000225565
  13  4.03786e-06
  14  3.34244e-06
  15  5.99234
  16  48.7548
  17  36.1841
  18  11.2577
  19  0.000118198
  20  1.57294e-06
  21  1.81113
  22  58.8283
  23  0.208013
  24  0.22483
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.000e-04  8.816e-07  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:  6.166e-01  2.248e-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:  1.262e+00  2.080e-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.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.69e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/320662/likelihoodResults_527817601_528076801_4FGL_J1418.4+3543_daily_bin1113.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) = 5582.38441405
delta logL = -0.00175909939117

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5582.38265822
delta logL = -3.27227098751e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12292E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0508       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2624       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61647       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=   5582.351     FROM MIGRAD    STATUS=CONVERGED    134 CALLS      283 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .84199E-01    18.150        .24857E-02    .38551E-02
   2  alpha         4.0101        3.8497        .50000        .45426E-04
   3  Normalizat    1.2476        .33831E-01    .20154E-03    .14760E-03
   4  Prefactor     .62631        .37833E-01    .31212E-03    .77146E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0841989
  alpha      = 4.01012
  Normalizat = 1.24763
  Prefactor  = 0.62631
 **********
 **   18 **HESSE 
 **********

 FCN=   5582.351     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      312 TOTAL
                     EDM=   .85E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .84199E-01    60.661        .81132E-04   -1.5650    
   2  alpha         4.0101        4.3189        .70689E-01    6.9318    
   3  Normalizat    1.2476        .11890        .40308E-04   -.85143    
   4  Prefactor     .62631        .13071        .12485E-04   -1.0649    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.46384e-06
Minuit parameter uncertainties:
  1  4.52191
  2  30.56
  3  0.118923
  4  0.130777
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/320662': 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) = 5582.3510116
delta logL = 0.0316433557027

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  6.263e-01  1.308e-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:  1.248e+00  1.189e-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/320662/cmap_HighResolution_527817601_528076801_4FGL_J1418.4+3543_daily_bin1113.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.69e-05', job_status='DONE', photon_flux_upper_limit='4.73e-08', time_completed='2021-09-09 08:30:40.790461', job_id='320662', GAL2='0.63', fit_tolerance='1e-08', EG2='1.25', EG='1.26', time_epoch_completed='1631201440.79', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='3.16e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='1113' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:30:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 320662: <4FGL_J1418.4+3543_daily_bin1113> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin1113 214.623 35.7192 527817601 528076801 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 :                                   644.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             245.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            892 sec.

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

