/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 153 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 = 7477
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1418.4+3543_daily_bin4
RA = 214.623, Dec = 35.7192
tmin = 240364801, tmax = 240624001
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='312374', job_status='RUN', time_executed='2021-09-09 07:53:17.617211', time_epoch_executed='1631199197.62' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='4'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/312374

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/312374/ft1_4FGL_J1418.4+3543_daily_bin4.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/312374/ft2_4FGL_J1418.4+3543_daily_bin4.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/312374/ft1_4FGL_J1418.4+3543_daily_bin4.fits outfile=/scratch/kocevski/312374/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin4.fits ra=214.623 dec=35.7192 rad=12.0 tmin=240364801.0 tmax=240624001.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 1.42
user 1.25
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/312374/ft1_filtered_4FGL_J1418.4+3543_daily_bin4.fits evtable="EVENTS" scfile=/scratch/kocevski/312374/ft2_4FGL_J1418.4+3543_daily_bin4.fits sctable="SC_DATA" expcube=/scratch/kocevski/312374/ltcube_240364801_240624001_4FGL_J1418.4+3543_daily_bin4.fits outfile=/scratch/kocevski/312374/expmap_240364801_240624001_4FGL_J1418.4+3543_daily_bin4.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/312374/ltcube_240364801_240624001_4FGL_J1418.4+3543_daily_bin4.fits
.....................!
real 190.15
user 185.72
sys 4.07

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/312374/ft1_filtered_4FGL_J1418.4+3543_daily_bin4.fits scfile=/scratch/kocevski/312374/ft2_4FGL_J1418.4+3543_daily_bin4.fits outfile=/scratch/kocevski/312374/cmap_240364801_240624001_4FGL_J1418.4+3543_daily_bin4.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/312374/ft1_filtered_4FGL_J1418.4+3543_daily_bin4.fits scfile=/scratch/kocevski/312374/ft2_4FGL_J1418.4+3543_daily_bin4.fits outfile=/scratch/kocevski/312374/cmap_HighResolution_240364801_240624001_4FGL_J1418.4+3543_daily_bin4.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.532       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.550       1.0000         .10000E-03   10000.    
     4 'norm      '    1.1148       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.6154       1.0000         .10000E-03   10000.    
     6 'norm      '    12.882       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.7858       1.0000         .10000E-03   10000.    
     9 'norm      '    5.3590       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.742       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .53310E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2199       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .86780       1.0000         .10000E-03   10000.    
    21 'norm      '    1.0193       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2843       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .51550       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=   5210.581     FROM MIGRAD    STATUS=CONVERGED    535 CALLS     2742 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    53.678       -.20853E-04** at limit **
   2  Prefactor     15.532        19.310       -.68780E-06    .16785E-04
   3  Prefactor     11.503        70.037       -.11351E-03    .21213E-04
   4  norm          1.1148        1.4277        .14826E-07   -.27499E-03
   5  Prefactor     4.6161        4.0294        .12393E-05   -.57736E-04
   6  norm          12.882        10.904        .72004E-06    .97494E-04
   7  Prefactor     .10000E-03    6.1372        .18170E-07** at limit **
   8  Prefactor     7.7858        10.679       -.49781E-06    .20992E-05
   9  norm          5.3602        4.1866        .99920E-06    .31411E-03
  10  Prefactor     .10000E-03    21.294       -.97036E-05** at limit **
  11  Prefactor     12.739        13.676       -.47983E-06    .41609E-03
  12  Prefactor     .10010E-03    1.8405       -.50725E-06** at limit **
  13  norm          .10000E-03    6.1314        .86533E-07** at limit **
  14  Prefactor     1.2163        39.460       -.56431E-05   -.21323E-03
  15  norm          .10000E-03    1.8479       -.62374E-07** at limit **
  16  Prefactor     .10000E-03    19.505        .10352E-04** at limit **
  17  Prefactor     .10000E-03    24.599       -.14771E-04** at limit **
  18  norm          .10000E-03    3.1789       -.24408E-07** at limit **
  19  Prefactor     .10000E-03    6.7081       -.30856E-06** at limit **
  20  Prefactor     .86391        8.8865       -.30141E-05   -.22255E-03
  21  norm          1.0186        1.7676       -.12860E-06    .25518E-04
  22  Prefactor     .10000E-03    36.238        .30870E-04** at limit **
  23  Normalizat    1.2840        .18388        .60375E-05    .45008E-03
  24  Prefactor     .51584        .19415       -.37409E-05    .55159E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 15.5323
  Prefactor  = 11.503
  norm       = 1.11482
  Prefactor  = 4.61611
  norm       = 12.8824
  Prefactor  = 0.0001
  Prefactor  = 7.78578
  norm       = 5.36022
  Prefactor  = 0.0001
  Prefactor  = 12.7391
  Prefactor  = 0.000100104
  norm       = 0.0001
  Prefactor  = 1.21634
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.863906
  norm       = 1.01857
  Prefactor  = 0.0001
  Normalizat = 1.28404
  Prefactor  = 0.515835
 **********
 **   18 **HESSE 
 **********

 FCN=   5210.581     FROM HESSE     STATUS=OK           403 CALLS     3145 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    53.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.532        19.322        .10163E-03   -1.4920    
   3  Prefactor     11.503        70.495        .11788E-03   -1.5030    
   4  norm          1.1148        1.3919        .93839E-04   -1.5497    
   5  Prefactor     4.6161        4.0294        .12909E-03   -1.5278    
   6  norm          12.882        10.903        .11161E-03   -1.4990    
   7  Prefactor     .10000E-03    6.1406        .17465E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.7858        10.675        .14371E-03   -1.5150    
   9  norm          5.3602        4.1693        .12447E-03   -1.5245    
  10  Prefactor     .10000E-03    21.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.739        13.625        .11222E-03   -1.4994    
  12  Prefactor     .10010E-03    24.733        .18522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.1363        .17454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.2163        40.476        .40844E-03   -1.5487    
  15  norm          .10000E-03    1.8546        .95817E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    19.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    24.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.1844        .12569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.7320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .86391        14.799        .34415E-02   -1.5522    
  21  norm          1.0186        1.4742        .10158E-02   -1.5506    
  22  Prefactor     .10000E-03    36.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2840        .20929        .19122E-03   -.84044    
  24  Prefactor     .51584        .22195        .32064E-03   -1.1126    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.756e-09
Minuit parameter uncertainties:
  1  0.000172716
  2  19.3301
  3  57.0528
  4  1.39189
  5  4.0296
  6  10.9044
  7  3.62757e-06
  8  10.6777
  9  4.16951
  10  4.83489e-05
  11  13.6283
  12  0.00320805
  13  8.72683e-06
  14  14.0429
  15  4.5731e-06
  16  2.10007e-05
  17  8.32902e-05
  18  9.12273e-07
  19  1.20626e-05
  20  7.15283
  21  1.47428
  22  1.89576e-05
  23  0.209428
  24  0.222326
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  5.360e+00  4.170e+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:  5.158e-01  2.223e-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.284e+00  2.094e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.24
Ra Dec: 214.623 35.719
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 3.26e-08 +/- 2.53e-08
Energy Flux (Fixed Index): 1.85e-05 +/- 1.44e-05

TS (Fixed Index): 3.24
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/312374/likelihoodResults_240364801_240624001_4FGL_J1418.4+3543_daily_bin4.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) = 5209.46419548
delta logL = 1.11711968564

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5209.4615858
delta logL = 1.11972936223

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4352       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0007       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2179       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56237       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=   5209.462     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      270 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4354        3.7707        .68285E-04   -.57272E-03
   2  alpha         3.0009        .77608        .97081E-02   -.37101E-04
   3  Normalizat    1.2179        .20519        .19521E-03    .12336E-03
   4  Prefactor     .56241        .22327        .30774E-03    .13048E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.4354
  alpha      = 3.00087
  Normalizat = 1.21788
  Prefactor  = 0.562408
 **********
 **   18 **HESSE 
 **********

 FCN=   5209.462     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4354        3.3358        .27314E-05   -1.5337    
   2  alpha         3.0009        .68848        .38832E-03    .20171    
   3  Normalizat    1.2179        .20478        .39042E-04   -.86052    
   4  Prefactor     .56241        .22294        .12310E-04   -1.0919    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.71507e-11
Minuit parameter uncertainties:
  1  3.33593
  2  0.697881
  3  0.204918
  4  0.223291
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/312374': 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) = 5209.46158541
delta logL = 1.11972975333

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  3.435e+00  3.336e+00  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  3.001e+00  6.979e-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:  5.624e-01  2.233e-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.218e+00  2.049e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.54
Ra Dec: 214.623 35.719
Photon Index (Free Index): 3.00 +/- 0.70
Photon Flux (Free Index): 8.15e-08 +/- 5.00e-08
Energy Flux (Free Index): 1.70e-05 +/- 9.22e-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/312374/cmap_HighResolution_240364801_240624001_4FGL_J1418.4+3543_daily_bin4.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.09e-05', comment='SUCCESS', photon_flux='3.26e-08', energy_flux2='1.70e-05', photon_flux_error='2.53e-08', dlogl='1.12e+00', energy_flux='1.85e-05', photon_flux2='8.15e-08', job_status='DONE', time_completed='2021-09-09 08:03:32.682690', photon_index_error2='0.70', photon_index2='3.00', ts='3.24', fit_tolerance='1e-08', GAL='0.52', photon_index_error='0.00', photon_flux_upper_limit='8.94e-08', energy_flux_error2='9.22e-06', EG='1.28', time_epoch_completed='1631199812.68', return_code='0', job_id='312374', GAL2='0.56', EG2='1.22', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='5.00e-08', ts2='5.54', photon_index='2.02' WHERE bin_id='4' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:03:32 PDT 2021


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

Job <4FGL_J1418.4+3543_daily_bin4> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Thu Sep  9 07:50:32 2021
Job was executed on host(s) <bullet0167>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 07:50:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 07:50:34 2021
Terminated at Thu Sep  9 08:03:33 2021
Results reported at Thu Sep  9 08:03:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin4 214.623 35.7192 240364801 240624001 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 :                                   614.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            781 sec.

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

