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


Performing analysis on: 4FGL_J1418.4+3543_daily_bin822
RA = 214.623, Dec = 35.7192
tmin = 452390401, tmax = 452649601
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='319058', job_status='RUN', time_executed='2021-09-09 08:11:16.582687', time_epoch_executed='1631200276.58' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='822'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/319058

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/319058/ft1_4FGL_J1418.4+3543_daily_bin822.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/319058/ft2_4FGL_J1418.4+3543_daily_bin822.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/319058/ft1_4FGL_J1418.4+3543_daily_bin822.fits outfile=/scratch/kocevski/319058/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin822.fits ra=214.623 dec=35.7192 rad=12.0 tmin=452390401.0 tmax=452649601.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.36
user 3.12
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/319058/ft1_filtered_4FGL_J1418.4+3543_daily_bin822.fits evtable="EVENTS" scfile=/scratch/kocevski/319058/ft2_4FGL_J1418.4+3543_daily_bin822.fits sctable="SC_DATA" expcube=/scratch/kocevski/319058/ltcube_452390401_452649601_4FGL_J1418.4+3543_daily_bin822.fits outfile=/scratch/kocevski/319058/expmap_452390401_452649601_4FGL_J1418.4+3543_daily_bin822.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/319058/ltcube_452390401_452649601_4FGL_J1418.4+3543_daily_bin822.fits
.....................!
real 189.59
user 184.47
sys 4.71

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/319058/ft1_filtered_4FGL_J1418.4+3543_daily_bin822.fits scfile=/scratch/kocevski/319058/ft2_4FGL_J1418.4+3543_daily_bin822.fits outfile=/scratch/kocevski/319058/cmap_452390401_452649601_4FGL_J1418.4+3543_daily_bin822.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 1.02
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/319058/ft1_filtered_4FGL_J1418.4+3543_daily_bin822.fits scfile=/scratch/kocevski/319058/ft2_4FGL_J1418.4+3543_daily_bin822.fits outfile=/scratch/kocevski/319058/cmap_HighResolution_452390401_452649601_4FGL_J1418.4+3543_daily_bin822.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/319058/ft1_filtered_4FGL_J1418.4+3543_daily_bin822.fits evtable="EVENTS" scfile=/scratch/kocevski/319058/ft2_4FGL_J1418.4+3543_daily_bin822.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/319058/Model_4FGL_J1418.4+3543_daily_bin822.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/319058/ft1_filtered_4FGL_J1418.4+3543_daily_bin822.fits.....................!
real 48.56
user 47.18
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    96.174       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    28.930       1.0000         .10000E-03   10000.    
     4 'norm      '    12.568       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.5804       1.0000         .10000E-03   10000.    
     6 'norm      '    4.3577       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.2390       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.9495       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.8640       1.0000         .10000E-03   10000.    
    13 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.1742       1.0000         .10000E-03   10000.    
    15 'norm      '    .82141E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.0189       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.522       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.3557       1.0000         .10000E-03   10000.    
    22 'Prefactor '    21.931       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0956       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .84002       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=   6015.325     FROM MIGRAD    STATUS=CONVERGED    548 CALLS     2714 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     96.186        67.992       -.72005E-06    .13050E-04
   2  Prefactor     .10000E-03    10.749       -.10173E-05** at limit **
   3  Prefactor     28.949        52.464       -.20421E-05    .12592E-04
   4  norm          12.568        2.6393        .84938E-07    .65247E-04
   5  Prefactor     1.5802        4.2474        .76918E-05   -.18028E-03
   6  norm          4.3571        9.9125        .51936E-06    .61267E-05
   7  Prefactor     .10000E-03    5.9529       -.20568E-06** at limit **
   8  Prefactor     .10000E-03    42.584       -.12190E-05** at limit **
   9  norm          5.2392        4.1461        .12284E-06    .22821E-04
  10  Prefactor     .10000E-03    5.3959       -.24030E-07** at limit **
  11  Prefactor     3.9482        9.3447        .42644E-06    .38309E-05
  12  Prefactor     3.8638        3.4081        .74735E-07   -.16408E-05
  13  norm          .10000E-03    4.4980       -.44828E-07** at limit **
  14  Prefactor     5.1740        15.559        .21055E-05   -.88033E-05
  15  norm          .10001E-03    3.6767        .32202E-06** at limit **
  16  Prefactor     .10000E-03    11.433        .84048E-06** at limit **
  17  Prefactor     .10000E-03    8.3280        .15761E-06** at limit **
  18  norm          7.0199        6.2630       -.26877E-06    .13158E-04
  19  Prefactor     11.522        11.758        .26054E-06   -.20555E-04
  20  Prefactor     .10000E-03    2.1507        .33413E-07** at limit **
  21  norm          1.3552        1.5232        .11889E-05    .11131E-02
  22  Prefactor     22.065        110.48       -.37558E-04   -.98712E-05
  23  Normalizat    1.0957        .18008       -.32149E-05    .79975E-04
  24  Prefactor     .83991        .19285        .26743E-05    .31816E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 96.1857
  Prefactor  = 0.0001
  Prefactor  = 28.9489
  norm       = 12.5679
  Prefactor  = 1.58021
  norm       = 4.35705
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.2392
  Prefactor  = 0.0001
  Prefactor  = 3.94824
  Prefactor  = 3.86383
  norm       = 0.0001
  Prefactor  = 5.17401
  norm       = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.01987
  Prefactor  = 11.522
  Prefactor  = 0.0001
  norm       = 1.35523
  Prefactor  = 22.0649
  Normalizat = 1.09568
  Prefactor  = 0.839911
 **********
 **   18 **HESSE 
 **********

 FCN=   6015.325     FROM HESSE     STATUS=OK           411 CALLS     3125 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     96.186        68.089        .40986E-04   -1.3743    
   2  Prefactor     .10000E-03    10.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     28.949        52.590        .74486E-04   -1.4631    
   4  norm          12.568        2.6446        .55269E-04   -1.4999    
   5  Prefactor     1.5802        4.2569        .12261E-02   -1.5457    
   6  norm          4.3571        9.9071        .19295E-03   -1.5290    
   7  Prefactor     .10000E-03    5.9610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    44.238        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.2392        4.1411        .13430E-03   -1.5250    
  10  Prefactor     .10000E-03    5.4120        .17586E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.9482        9.3312        .20298E-03   -1.5311    
  12  Prefactor     3.8638        3.4103        .12805E-03   -1.5315    
  13  norm          .10000E-03    4.4998        .16064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.1740        15.552        .88365E-03   -1.5253    
  15  norm          .10001E-03    3.6290        .47832E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.3331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.0199        6.2650        .75712E-03   -1.5178    
  19  Prefactor     11.522        11.746        .11802E-03   -1.5029    
  20  Prefactor     .10000E-03    2.1526        .11104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.3552        1.5096        .92986E-04   -1.5475    
  22  Prefactor     22.065        110.62        .85530E-04   -1.4768    
  23  Normalizat    1.0957        .21078        .22456E-03   -.89891    
  24  Prefactor     .83991        .22606        .29008E-03   -.98273    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8993e-10
Minuit parameter uncertainties:
  1  68.1443
  2  6.56262e-07
  3  52.6748
  4  2.64466
  5  4.25773
  6  9.91078
  7  3.78781e-06
  8  0.000233222
  9  4.14135
  10  1.05594e-05
  11  9.33468
  12  3.41047
  13  3.07365e-06
  14  15.5643
  15  0.000306801
  16  1.66985e-05
  17  1.05953e-05
  18  6.26561
  19  11.7479
  20  1.11832e-06
  21  1.50966
  22  99.1036
  23  0.210943
  24  0.226312
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  5.239e+00  4.141e+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

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  8.399e-01  2.263e-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.096e+00  2.109e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.22
Ra Dec: 214.623 35.719
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 3.18e-08 +/- 2.52e-08
Energy Flux (Fixed Index): 1.81e-05 +/- 1.43e-05

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

Saving results to:
/scratch/kocevski/319058/likelihoodResults_452390401_452649601_4FGL_J1418.4+3543_daily_bin822.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) = 6014.62169828
delta logL = 0.703346656876

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6014.61333356
delta logL = 0.711711371977

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0163       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7502       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0553       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86573       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=   6014.613     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      233 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0163        48.380        .50307E-02    .48317E-03
   2  alpha         2.7503        3.8733        .29050        .52463E-04
   3  Normalizat    1.0553        .68863E-01    .40217E-01    .76874E-05
   4  Prefactor     .86574        .70705E-01    .64644E-01    .15613E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.01632
  alpha      = 2.75029
  Normalizat = 1.05527
  Prefactor  = 0.865745
 **********
 **   18 **HESSE 
 **********

 FCN=   6014.613     FROM HESSE     STATUS=OK            33 CALLS      266 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0163        3.7010        .90116E-04   -1.5307    
   2  alpha         2.7503        .65596        .11127E-01    .10028    
   3  Normalizat    1.0553        .19972        .22810E-03   -.91201    
   4  Prefactor     .86574        .22592        .28593E-03   -.97349    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8534e-09
Minuit parameter uncertainties:
  1  3.70118
  2  0.66381
  3  0.199859
  4  0.22616
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/319058': 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) = 6014.61333354
delta logL = 0.711711392653

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  4.016e+00  3.701e+00  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  2.750e+00  6.638e-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:  8.657e-01  2.262e-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.055e+00  1.999e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.66
Ra Dec: 214.623 35.719
Photon Index (Free Index): 2.75 +/- 0.66
Photon Flux (Free Index): 6.48e-08 +/- 4.42e-08
Energy Flux (Free Index): 1.56e-05 +/- 9.81e-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/319058/cmap_HighResolution_452390401_452649601_4FGL_J1418.4+3543_daily_bin822.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.09e-05', comment='SUCCESS', photon_flux='3.18e-08', energy_flux2='1.56e-05', photon_flux_error='2.52e-08', dlogl='7.12e-01', energy_flux='1.81e-05', photon_flux2='6.48e-08', job_status='DONE', time_completed='2021-09-09 08:22:37.656797', photon_index_error2='0.66', photon_index2='2.75', ts='3.22', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='8.94e-08', energy_flux_error2='9.81e-06', EG='1.10', time_epoch_completed='1631200957.66', return_code='0', job_id='319058', GAL2='0.87', EG2='1.06', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='4.42e-08', ts2='4.66', photon_index='2.02' WHERE bin_id='822' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:22:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 319058: <4FGL_J1418.4+3543_daily_bin822> in cluster <slac> Done

Job <4FGL_J1418.4+3543_daily_bin822> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 08:10:46 2021
Job was executed on host(s) <bullet0167>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 08:10:47 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:10:47 2021
Terminated at Thu Sep  9 08:22:40 2021
Results reported at Thu Sep  9 08:22:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin822 214.623 35.7192 452390401 452649601 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 :                                   664.09 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   710 sec.
    Turnaround time :                            714 sec.

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

