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


Performing analysis on: 4FGL_J1418.4+3543_daily_bin23
RA = 214.623, Dec = 35.7192
tmin = 245289601, tmax = 245548801
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='312404', job_status='RUN', time_executed='2021-09-09 07:52:38.464137', time_epoch_executed='1631199158.46' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='23'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/312404

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/312404/ft1_4FGL_J1418.4+3543_daily_bin23.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/312404/ft2_4FGL_J1418.4+3543_daily_bin23.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/312404/ft1_4FGL_J1418.4+3543_daily_bin23.fits outfile=/scratch/kocevski/312404/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin23.fits ra=214.623 dec=35.7192 rad=12.0 tmin=245289601.0 tmax=245548801.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.51
user 1.29
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/312404/ft2_4FGL_J1418.4+3543_daily_bin23.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/312404/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin23.fits evtable="EVENTS" outfile="/scratch/kocevski/312404/ft1_filtered_4FGL_J1418.4+3543_daily_bin23.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.60
user 0.34
sys 0.13

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/312404/ft1_filtered_4FGL_J1418.4+3543_daily_bin23.fits evtable="EVENTS" scfile=/scratch/kocevski/312404/ft2_4FGL_J1418.4+3543_daily_bin23.fits sctable="SC_DATA" expcube=/scratch/kocevski/312404/ltcube_245289601_245548801_4FGL_J1418.4+3543_daily_bin23.fits outfile=/scratch/kocevski/312404/expmap_245289601_245548801_4FGL_J1418.4+3543_daily_bin23.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/312404/ltcube_245289601_245548801_4FGL_J1418.4+3543_daily_bin23.fits
.....................!
real 193.81
user 185.94
sys 4.54

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/312404/ft1_filtered_4FGL_J1418.4+3543_daily_bin23.fits scfile=/scratch/kocevski/312404/ft2_4FGL_J1418.4+3543_daily_bin23.fits outfile=/scratch/kocevski/312404/cmap_245289601_245548801_4FGL_J1418.4+3543_daily_bin23.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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/312404/ft1_filtered_4FGL_J1418.4+3543_daily_bin23.fits scfile=/scratch/kocevski/312404/ft2_4FGL_J1418.4+3543_daily_bin23.fits outfile=/scratch/kocevski/312404/cmap_HighResolution_245289601_245548801_4FGL_J1418.4+3543_daily_bin23.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.1206       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.1735       1.0000         .10000E-03   10000.    
     6 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    30.487       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.5396       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.3691       1.0000         .10000E-03   10000.    
    13 'norm      '    6.7631       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.7039       1.0000         .10000E-03   10000.    
    15 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    29.225       1.0000         .10000E-03   10000.    
    18 'norm      '    4.9551       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.0316       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .15045E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.2153       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .92554       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .88690       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=   5778.354     FROM MIGRAD    STATUS=CONVERGED    532 CALLS     2714 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.269       -.16823E-05** at limit **
   2  Prefactor     .10000E-03    39.197        .34007E-05** at limit **
   3  Prefactor     .10000E-03    26.426       -.16466E-05** at limit **
   4  norm          1.1209        1.3422       -.12397E-06    .88225E-04
   5  Prefactor     5.1718        4.4441        .18511E-07   -.68233E-04
   6  norm          .10000E-03    9.1551        .17643E-06** at limit **
   7  Prefactor     .10000E-03    4.6376        .19093E-07** at limit **
   8  Prefactor     30.480        22.008        .44361E-06    .14874E-04
   9  norm          .10000E-03    1.3260       -.20758E-07** at limit **
  10  Prefactor     8.5374        8.7275       -.58391E-06    .23524E-03
  11  Prefactor     .10000E-03    6.1521        .13211E-06** at limit **
  12  Prefactor     4.3687        3.0745       -.42330E-07    .51482E-04
  13  norm          6.7630        7.2297        .91721E-07   -.12879E-04
  14  Prefactor     1.6903        42.831       -.58218E-06    .32024E-04
  15  norm          .10000E-03    2.0463       -.63498E-07** at limit **
  16  Prefactor     .10000E-03    11.823       -.69906E-06** at limit **
  17  Prefactor     29.220        24.933        .34722E-06    .18298E-04
  18  norm          4.9554        6.1235        .72698E-08    .47634E-04
  19  Prefactor     7.0340        16.607        .81894E-07    .94218E-04
  20  Prefactor     .10000E-03    18.352       -.57156E-05** at limit **
  21  norm          2.2171        1.5254        .14723E-06    .90325E-03
  22  Prefactor     .10000E-03    32.824       -.10381E-05** at limit **
  23  Normalizat    .92567        .16408        .13765E-06    .10991E-03
  24  Prefactor     .88675        .17751        .31696E-06    .16897E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.12095
  Prefactor  = 5.17181
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.4802
  norm       = 0.0001
  Prefactor  = 8.53744
  Prefactor  = 0.0001
  Prefactor  = 4.36874
  norm       = 6.76298
  Prefactor  = 1.69027
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.2203
  norm       = 4.95537
  Prefactor  = 7.03398
  Prefactor  = 0.0001
  norm       = 2.21708
  Prefactor  = 0.0001
  Normalizat = 0.925673
  Prefactor  = 0.886749
 **********
 **   18 **HESSE 
 **********

 FCN=   5778.354     FROM HESSE     STATUS=OK           401 CALLS     3115 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    39.540        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    26.549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.1209        1.3115        .92686E-04   -1.5496    
   5  Prefactor     5.1718        4.4631        .13968E-03   -1.5253    
   6  norm          .10000E-03    9.2082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.6391        .15988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     30.480        22.082        .72564E-04   -1.4603    
   9  norm          .10000E-03    1.3409        .85459E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.5374        8.7213        .68588E-03   -1.5124    
  11  Prefactor     .10000E-03    6.1711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.3687        3.0729        .10740E-03   -1.5290    
  13  norm          6.7630        7.2301        .15429E-03   -1.5188    
  14  Prefactor     1.6903        43.728        .32219E-03   -1.5448    
  15  norm          .10000E-03    2.0542        .10618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     29.220        24.967        .74111E-04   -1.4626    
  18  norm          4.9554        6.1156        .18067E-03   -1.5263    
  19  Prefactor     7.0340        16.333        .15129E-03   -1.5177    
  20  Prefactor     .10000E-03    18.211        .33835E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.2171        1.4671        .71139E-04   -1.5410    
  22  Prefactor     .10000E-03    32.887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .92567        .19525        .21898E-03   -.95564    
  24  Prefactor     .88675        .20968        .25423E-03   -.96606    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.865e-10
Minuit parameter uncertainties:
  1  3.75806e-05
  2  0.000233266
  3  3.17685e-05
  4  1.31155
  5  4.46341
  6  3.82715e-06
  7  2.28315e-06
  8  22.0883
  9  4.17002e-07
  10  8.72256
  11  1.14569e-05
  12  3.07299
  13  7.23107
  14  17.2079
  15  3.11452e-07
  16  1.09111e-05
  17  24.9757
  18  6.11637
  19  16.3434
  20  2.45175e-05
  21  1.4671
  22  3.45407e-05
  23  0.195398
  24  0.209873
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.000e-04  4.170e-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:  8.867e-01  2.099e-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.257e-01  1.954e-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: 3.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.03e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/312404/likelihoodResults_245289601_245548801_4FGL_J1418.4+3543_daily_bin23.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) = 5778.35774273
delta logL = -0.00352706981903

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5778.35421591
delta logL = -2.47703610512e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0101       1.0000          .0000       5.0000    
     3 'Normalizat'    .92557       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88690       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=   5778.354     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      225 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.9830        .85575E-03** at limit **
   2  alpha         1.9040        2.9560        .16879       -.32263E-07
   3  Normalizat    .92567        .18147        .21898E-03    .40806E-04
   4  Prefactor     .88675        .20774        .25423E-03    .22985E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.90402
  Normalizat = 0.925673
  Prefactor  = 0.88675
 **********
 **   18 **HESSE 
 **********

 FCN=   5778.354     FROM HESSE     STATUS=OK            27 CALLS      252 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.3665        .17115E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9040        3.2035        .67515E-01   -.24071    
   3  Normalizat    .92567        .18166        .87593E-05   -.95564    
   4  Prefactor     .88675        .20796        .10169E-04   -.96606    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72811e-11
Minuit parameter uncertainties:
  1  9.64109e-06
  2  111.573
  3  0.181785
  4  0.208142
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/312404': 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) = 5778.35421516
delta logL = 4.96428583574e-07

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.000e-04  9.641e-06  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  1.904e+00  1.116e+02  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.868e-01  2.081e-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.257e-01  1.818e-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/312404/cmap_HighResolution_245289601_245548801_4FGL_J1418.4+3543_daily_bin23.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.03e-05', job_status='DONE', photon_flux_upper_limit='3.56e-08', time_completed='2021-09-09 08:03:25.155296', job_id='312404', GAL2='0.89', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1631199805.16', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='4.96e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='23' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:03:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 312404: <4FGL_J1418.4+3543_daily_bin23> in cluster <slac> Done

Job <4FGL_J1418.4+3543_daily_bin23> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Thu Sep  9 07:50:34 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 07:50:36 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:36 2021
Terminated at Thu Sep  9 08:03:25 2021
Results reported at Thu Sep  9 08:03:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin23 214.623 35.7192 245289601 245548801 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 :                                   643.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             315.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   769 sec.
    Turnaround time :                            771 sec.

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

