aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 159 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 = 7485
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1418.4+3543_daily_bin1663
RA = 214.623, Dec = 35.7192
tmin = 670377601, tmax = 670636801
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='369319', job_status='RUN', time_executed='2022-04-03 08:33:09.232432', time_epoch_executed='1648999989.23' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='1663'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/369319

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/369319/ft1_4FGL_J1418.4+3543_daily_bin1663.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/369319/ft2_4FGL_J1418.4+3543_daily_bin1663.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/369319/ft1_4FGL_J1418.4+3543_daily_bin1663.fits outfile=/scratch/kocevski/369319/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1663.fits ra=214.623 dec=35.7192 rad=12.0 tmin=670377601.0 tmax=670636801.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.83
user 3.58
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/369319/ft2_4FGL_J1418.4+3543_daily_bin1663.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/369319/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1663.fits evtable="EVENTS" outfile="/scratch/kocevski/369319/ft1_filtered_4FGL_J1418.4+3543_daily_bin1663.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 495

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/369319/ft1_filtered_4FGL_J1418.4+3543_daily_bin1663.fits" evtable="EVENTS" scfile=/scratch/kocevski/369319/ft2_4FGL_J1418.4+3543_daily_bin1663.fits sctable="SC_DATA" outfile=/scratch/kocevski/369319/ltcube_670377601_670636801_4FGL_J1418.4+3543_daily_bin1663.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/369319/ft2_4FGL_J1418.4+3543_daily_bin1663.fits
.....................!
real 12.03
user 11.65
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/369319/ft1_filtered_4FGL_J1418.4+3543_daily_bin1663.fits evtable="EVENTS" scfile=/scratch/kocevski/369319/ft2_4FGL_J1418.4+3543_daily_bin1663.fits sctable="SC_DATA" expcube=/scratch/kocevski/369319/ltcube_670377601_670636801_4FGL_J1418.4+3543_daily_bin1663.fits outfile=/scratch/kocevski/369319/expmap_670377601_670636801_4FGL_J1418.4+3543_daily_bin1663.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/369319/ltcube_670377601_670636801_4FGL_J1418.4+3543_daily_bin1663.fits
.....................!
real 190.38
user 184.99
sys 4.99

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/369319/ft1_filtered_4FGL_J1418.4+3543_daily_bin1663.fits scfile=/scratch/kocevski/369319/ft2_4FGL_J1418.4+3543_daily_bin1663.fits outfile=/scratch/kocevski/369319/cmap_670377601_670636801_4FGL_J1418.4+3543_daily_bin1663.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=214.623 yref=35.7192 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/369319/ft1_filtered_4FGL_J1418.4+3543_daily_bin1663.fits scfile=/scratch/kocevski/369319/ft2_4FGL_J1418.4+3543_daily_bin1663.fits outfile=/scratch/kocevski/369319/cmap_HighResolution_670377601_670636801_4FGL_J1418.4+3543_daily_bin1663.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=214.623 yref=35.7192 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.813       1.0000         .10000E-03   10000.    
     2 'Prefactor '    26.943       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10374E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.627       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.510       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.917       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.6991       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.1528       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.4996       1.0000         .10000E-03   10000.    
    21 'norm      '    1.5990       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .47847       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3937       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=   5373.899     FROM MIGRAD    STATUS=CONVERGED    529 CALLS     2715 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.814        36.780        .16084E-02   -.73864E-04
   2  Prefactor     26.944        24.068        .19295E-02    .15926E-03
   3  Prefactor     .10024E-03    149.77        .90712E-02** at limit **
   4  norm          .10000E-03    .50012        .28676E-01** at limit **
   5  Prefactor     14.627        5.3697        .26181E-02   -.14454E-03
   6  norm          .10001E-03    10.435        .90712E-02** at limit **
   7  Prefactor     .10000E-03    10.946        .90712E-02** at limit **
   8  Prefactor     20.510        17.890        .22110E-02    .17425E-03
   9  norm          .10000E-03    1.3881        .90712E-02** at limit **
  10  Prefactor     .10000E-03    10.936        .90712E-02** at limit **
  11  Prefactor     23.919        15.391        .20477E-02    .23202E-02
  12  Prefactor     7.6990        4.3990        .36130E-02   -.13018E-02
  13  norm          .10000E-03    4.5835        .90712E-02** at limit **
  14  Prefactor     .10000E-03    7.1274        .90712E-02** at limit **
  15  norm          .10000E-03    2.6104        .90712E-02** at limit **
  16  Prefactor     2.1312        75.309        .70202E-02   -.39703E-03
  17  Prefactor     .10000E-03    9.7166        .90712E-02** at limit **
  18  norm          .10000E-03    4.3274        .90712E-02** at limit **
  19  Prefactor     .10000E-03    4.8674        .90712E-02** at limit **
  20  Prefactor     4.4991        7.6049        .47451E-02    .30118E-03
  21  norm          1.5991        1.8479        .83828E-02    .68947E-03
  22  Prefactor     .10000E-03    23.504        .90712E-02** at limit **
  23  Normalizat    .47845        .16963        .65812E-01    .10319E-03
  24  Prefactor     1.3937        .19581        .49343E-01    .96851E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.8136
  Prefactor  = 26.9437
  Prefactor  = 0.00010024
  norm       = 0.0001
  Prefactor  = 14.6275
  norm       = 0.000100014
  Prefactor  = 0.0001
  Prefactor  = 20.5098
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.9193
  Prefactor  = 7.69895
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.13116
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.49914
  norm       = 1.5991
  Prefactor  = 0.000100002
  Normalizat = 0.478451
  Prefactor  = 1.3937
 **********
 **   18 **HESSE 
 **********

 FCN=   5373.899     FROM HESSE     STATUS=OK           389 CALLS     3104 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.814        36.781        .64336E-04   -1.4461    
   2  Prefactor     26.944        24.066        .77178E-04   -1.4669    
   3  Prefactor     .10024E-03    151.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .86360        .10059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.627        5.3711        .96960E-04   -1.4943    
   6  norm          .10001E-03    10.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.510        17.927        .88442E-04   -1.4802    
   9  norm          .10000E-03    1.3941        .84317E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     23.919        15.380        .81908E-04   -1.4729    
  12  Prefactor     7.6990        4.3967        .10956E-03   -1.5153    
  13  norm          .10000E-03    4.5846        .15327E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.1400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.6244        .11562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.1312        75.567        .28081E-03   -1.5416    
  17  Prefactor     .10000E-03    9.7249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.3409        .14893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.8777        .15793E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.4991        7.5073        .18980E-03   -1.5284    
  21  norm          1.5991        1.8100        .89919E-04   -1.5455    
  22  Prefactor     .10000E-03    23.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .47845        .19641        .29128E-03   -1.1342    
  24  Prefactor     1.3937        .22908        .21813E-03   -.80562    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56867e-08
Minuit parameter uncertainties:
  1  36.8025
  2  24.0749
  3  0.0120842
  4  7.95672e-06
  5  5.37127
  6  0.000762024
  7  8.12326e-05
  8  17.9315
  9  1.64846e-05
  10  0.000100829
  11  15.3827
  12  4.39688
  13  7.04468e-05
  14  1.83689e-05
  15  2.20614e-05
  16  25.4149
  17  0.000352635
  18  1.60713e-05
  19  2.66831e-05
  20  7.50891
  21  1.81008
  22  0.000451019
  23  0.196691
  24  0.229246
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.000e-04  1.648e-05  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:  1.394e+00  2.292e-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:  4.785e-01  1.967e-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.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.37e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/369319/likelihoodResults_670377601_670636801_4FGL_J1418.4+3543_daily_bin1663.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) = 5373.90219199
delta logL = -0.00330965243211

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5373.88414677
delta logL = 0.0147355642675

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13023E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.8983       1.0000          .0000       5.0000    
     3 'Normalizat'    .46689       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4023       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5373.884     FROM MIGRAD    STATUS=FAILED       104 CALLS      361 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13218E-01    .12998        .32339E-03    .21150E-01
   2  alpha         4.8928        2.8249        .50000       -.69968E-03
   3  Normalizat    .46690        .19810        .29472E-03    .62762E-04
   4  Prefactor     1.4022        .23342        .21755E-03   -.76494E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5373.884     FROM SIMPLEX   STATUS=UNCHANGED     71 CALLS      432 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .13218E-01    .12998        .10070E-03   -1.5685    
   2  alpha         4.8928        2.8249        .63520E-01    1.2769    
   3  Normalizat    .46690        .19810        .32397E-03   -1.1397    
   4  Prefactor     1.4022        .23342        .17343E-03   -.80315    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5373.884     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      475 TOTAL
                     EDM=   .64E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13219E-01    .12362         .0000        .83273E-03
   2  alpha         4.8928        2.9095         .0000       -.69966E-03
   3  Normalizat    .46690        .19674         .0000       -.48219E-05
   4  Prefactor     1.4022        .23290         .0000       -.41283E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0132185
  alpha      = 4.89281
  Normalizat = 0.4669
  Prefactor  = 1.40225
 **********
 **   18 **HESSE 
 **********

 FCN=   5373.884     FROM HESSE     STATUS=OK            29 CALLS      504 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .13219E-01    .12258        .12936E-04   -1.5685    
   2  alpha         4.8928        2.9226        .50000        1.2769    
   3  Normalizat    .46690        .19672        .23577E-05   -1.1397    
   4  Prefactor     1.4022        .23302        .87021E-05   -.80315    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26629e-05
Minuit parameter uncertainties:
  1  0.0802002
  2  3.68334
  3  0.197014
  4  0.233198
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/369319': 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) = 5373.88414607
delta logL = 0.0147362626531

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  1.402e+00  2.332e-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:  4.669e-01  1.970e-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/369319/cmap_HighResolution_670377601_670636801_4FGL_J1418.4+3543_daily_bin1663.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.37e-05', job_status='DONE', photon_flux_upper_limit='4.16e-08', time_completed='2022-04-03 08:43:52.342634', job_id='369319', GAL2='1.40', fit_tolerance='1e-08', EG2='0.47', EG='0.48', time_epoch_completed='1649000632.34', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.39', dlogl='1.47e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='1663' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Apr  3 08:43:52 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0187>
Subject: Job 369319: <4FGL_J1418.4+3543_daily_bin1663> in cluster <slac> Done

Job <4FGL_J1418.4+3543_daily_bin1663> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Apr  3 08:30:13 2022
Job was executed on host(s) <bullet0187>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr  3 08:30:16 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Apr  3 08:30:16 2022
Terminated at Sun Apr  3 08:43:53 2022
Results reported at Sun Apr  3 08:43:53 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin1663 214.623 35.7192 670377601 670636801 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 :                                   642.26 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             270.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            820 sec.

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

