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 96 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7460
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1418.4+3543_daily_bin1711
RA = 214.623, Dec = 35.7192
tmin = 682819201, tmax = 683078401
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='143488', job_status='RUN', time_executed='2022-09-16 18:17:05.811255', time_epoch_executed='1663377425.81' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='1711'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/143488

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/143488/ft1_4FGL_J1418.4+3543_daily_bin1711.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/143488/ft2_4FGL_J1418.4+3543_daily_bin1711.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/143488/ft1_4FGL_J1418.4+3543_daily_bin1711.fits outfile=/scratch/kocevski/143488/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin1711.fits ra=214.623 dec=35.7192 rad=12.0 tmin=682819201.0 tmax=683078401.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 4.53
user 4.29
sys 0.23

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

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

Number of photons that the gtmktime cut: 540

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/143488/ft1_filtered_4FGL_J1418.4+3543_daily_bin1711.fits evtable="EVENTS" scfile=/scratch/kocevski/143488/ft2_4FGL_J1418.4+3543_daily_bin1711.fits sctable="SC_DATA" expcube=/scratch/kocevski/143488/ltcube_682819201_683078401_4FGL_J1418.4+3543_daily_bin1711.fits outfile=/scratch/kocevski/143488/expmap_682819201_683078401_4FGL_J1418.4+3543_daily_bin1711.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/143488/ltcube_682819201_683078401_4FGL_J1418.4+3543_daily_bin1711.fits
.....................!
real 191.32
user 185.81
sys 5.13

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/143488/ft1_filtered_4FGL_J1418.4+3543_daily_bin1711.fits scfile=/scratch/kocevski/143488/ft2_4FGL_J1418.4+3543_daily_bin1711.fits outfile=/scratch/kocevski/143488/cmap_682819201_683078401_4FGL_J1418.4+3543_daily_bin1711.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/143488/ft1_filtered_4FGL_J1418.4+3543_daily_bin1711.fits scfile=/scratch/kocevski/143488/ft2_4FGL_J1418.4+3543_daily_bin1711.fits outfile=/scratch/kocevski/143488/cmap_HighResolution_682819201_683078401_4FGL_J1418.4+3543_daily_bin1711.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.57
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/143488/ft1_filtered_4FGL_J1418.4+3543_daily_bin1711.fits', '/scratch/kocevski/143488/ft2_4FGL_J1418.4+3543_daily_bin1711.fits', expMap='/scratch/kocevski/143488/expmap_682819201_683078401_4FGL_J1418.4+3543_daily_bin1711.fits', expCube='/scratch/kocevski/143488/ltcube_682819201_683078401_4FGL_J1418.4+3543_daily_bin1711.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/143488/Model_4FGL_J1418.4+3543_daily_bin1711.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  0.000e+00  1.000e+06 ( 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 -5.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/143488/ft1_filtered_4FGL_J1418.4+3543_daily_bin1711.fits
Spacecraft file(s): /scratch/kocevski/143488/ft2_4FGL_J1418.4+3543_daily_bin1711.fits
Exposure map: /scratch/kocevski/143488/expmap_682819201_683078401_4FGL_J1418.4+3543_daily_bin1711.fits
Exposure cube: /scratch/kocevski/143488/ltcube_682819201_683078401_4FGL_J1418.4+3543_daily_bin1711.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/143488/Model_4FGL_J1418.4+3543_daily_bin1711.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) = 5984.06057805

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    81.846       1.0000          .0000       .10000E+07
     2 'Prefactor '    .71719E-03   1.0000          .0000       .10000E+07
     3 'norm      '    .28272       1.0000          .0000       .10000E+07
     4 'Prefactor '    9.4700       1.0000          .0000       .10000E+07
     5 'norm      '    13.690       1.0000          .0000       .10000E+07
     6 'Prefactor '    .62388E-02   1.0000          .0000       .10000E+07
     7 'norm      '    4.0380       1.0000          .0000       .10000E+07
     8 'Prefactor '    .27534E-07   1.0000          .0000       .10000E+07
     9 'Prefactor '    .11797E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    13.552       1.0000          .0000       .10000E+07
    11 'norm      '    .43455E-03   1.0000          .0000       .10000E+07
    12 'norm      '    3.8287       1.0000          .0000       .10000E+07
    13 'Prefactor '    30.220       1.0000          .0000       .10000E+07
    14 'norm      '    14.413       1.0000          .0000       .10000E+07
    15 'Prefactor '    .22628E-01   1.0000          .0000       .10000E+07
    16 'Prefactor '    .74838E-03   1.0000          .0000       .10000E+07
    17 'norm      '    1.6472       1.0000          .0000       .10000E+07
    18 'Prefactor '    .22884E-01   1.0000          .0000       .10000E+07
    19 'Normalizat'    .91303       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2299       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5780E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5984.052     FROM MIGRAD    STATUS=CONVERGED    153 CALLS     1563 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     82.875        78.198        .23794E-07   -.30295E-01
   2  Prefactor     .16653E-09    20.223        .23462E-06** at limit **
   3  norm          .28253        1.0853       -.13776E-07   -.24118E-02
   4  Prefactor     9.5064        6.2922        .16410E-07    .27101E-02
   5  norm          13.704        1.6992       -.10831E-07    .12776    
   6  Prefactor     .38858E-09    13.014        .58957E-08** at limit **
   7  norm          4.0377        3.5213       -.22557E-07   -.42712E-02
   8  Prefactor     .16653E-09    5.3379       -.30653E-07** at limit **
   9  Prefactor     .16653E-09    8.4742        .67026E-07** at limit **
  10  Prefactor     13.526        5.4720       -.17477E-07   -.48637E-02
  11  norm          .55511E-10    6.2264        .96144E-08** at limit **
  12  norm          3.7611        6.0328        .13757E-07    .36788E-03
  13  Prefactor     30.429        8.4777       -.21796E-07    .15257    
  14  norm          14.435        9.1145        .20203E-07    .26465E-02
  15  Prefactor     .85487E-08    45.151       -.45020E-06** at limit **
  16  Prefactor     .12329E-06    29.755        .57580E-06** at limit **
  17  norm          1.6493        1.2886       -.28192E-07   -.13593E-01
  18  Prefactor     .18319E-08    26.961       -.20790E-06** at limit **
  19  Normalizat    .91292        .22414       -.10290E-05   -.52031E-03
  20  Prefactor     1.2301        .25190       -.30020E-06   -.48046E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 82.8754
  Prefactor  = 1.66533e-10
  norm       = 0.282526
  Prefactor  = 9.50644
  norm       = 13.7042
  Prefactor  = 3.88578e-10
  norm       = 4.03774
  Prefactor  = 1.66533e-10
  Prefactor  = 1.66533e-10
  Prefactor  = 13.5262
  norm       = 5.55112e-11
  norm       = 3.7611
  Prefactor  = 30.4285
  norm       = 14.4353
  Prefactor  = 8.54872e-09
  Prefactor  = 1.2329e-07
  norm       = 1.64928
  Prefactor  = 1.83187e-09
  Normalizat = 0.912919
  Prefactor  = 1.23006
 **********
 **   18 **HESSE 
 **********

 FCN=   5984.052     FROM HESSE     STATUS=OK           343 CALLS     1906 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     82.875        79.284        .11054E-03   -1.5526    
   2  Prefactor     .16653E-09    20.241        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .28253        1.0684        .10457E-02   -1.5697    
   4  Prefactor     9.5064        6.2998        .32541E-03   -1.5646    
   5  norm          13.704        12.760        .27045E-03   -1.5634    
   6  Prefactor     .38858E-09    13.017        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.0377        3.5221        .50157E-03   -1.5668    
   8  Prefactor     .16653E-09    5.3440        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .16653E-09    8.4795        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.526        5.4791        .27183E-03   -1.5634    
  11  norm          .55511E-10    6.2274        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.7611        6.0490        .51555E-03   -1.5669    
  13  Prefactor     30.429        38.221        .18194E-03   -1.5598    
  14  norm          14.435        9.1717        .26357E-03   -1.5632    
  15  Prefactor     .85487E-08    6.3685        .10683E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .12329E-06    28.636        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.6493        1.2999        .82254E-03   -1.5682    
  18  Prefactor     .18319E-08    26.979        .16854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .91292        .18772        .45068E-01   -.96008    
  20  Prefactor     1.2301        .20945        .59438E-01   -.85411    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40768e-06
Minuit parameter uncertainties:
  1  79.2855
  2  0.000106602
  3  1.0684
  4  6.29981
  5  12.7605
  6  0.000146313
  7  3.52211
  8  5.95977e-05
  9  7.68482e-05
  10  5.47913
  11  4.19142e-05
  12  6.049
  13  38.2215
  14  9.17172
  15  0.000466813
  16  0.00375776
  17  1.29993
  18  0.000447029
  19  0.18785
  20  0.209593
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  4.038e+00  3.522e+00  0.000e+00  1.000e+06 ( 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 -5.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.230e+00  2.096e-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.129e-01  1.878e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.53
Ra Dec: 214.623 35.719
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 2.45e-08 +/- 2.14e-08
Energy Flux (Fixed Index): 1.40e-05 +/- 1.22e-05

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

Saving results to:
/scratch/kocevski/143488/likelihoodResults_682819201_683078401_4FGL_J1418.4+3543_daily_bin1711.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) = 5983.59891232
delta logL = 0.453314091974

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5983.59461098
delta logL = 0.457615424968

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1697       1.0000          .0000       .10000E+07
     2 'alpha     '    2.9898       1.0000          .0000       5.0000    
     3 'Normalizat'    .84522       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2787       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=   5983.595     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      309 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1698        4.3262        .80428E-05    .48625E-03
   2  alpha         2.9899        1.1676        .13126E-01    .14515E-04
   3  Normalizat    .84527        .23534        .26843E-03    .99953E-05
   4  Prefactor     1.2787        .26178        .25838E-03    .30316E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.16978
  alpha      = 2.98985
  Normalizat = 0.845268
  Prefactor  = 1.2787
 **********
 **   18 **HESSE 
 **********

 FCN=   5983.595     FROM HESSE     STATUS=OK            25 CALLS      334 TOTAL
                     EDM=   .40E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1698        3.5169        .32171E-06   -1.5672    
   2  alpha         2.9899        .96066        .52503E-03    .19722    
   3  Normalizat    .84527        .23119        .10737E-04   -.98411    
   4  Prefactor     1.2787        .25905        .10335E-04   -.83943    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.011e-12
Minuit parameter uncertainties:
  1  3.51693
  2  0.987115
  3  0.231456
  4  0.259312
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/143488': 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) = 5983.59461095
delta logL = 0.457615459954

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  3.170e+00  3.517e+00  0.000e+00  1.000e+06 ( 1.000e-12)
284        alpha:  2.990e+00  9.871e-01  0.000e+00  5.000e+00 ( 1.000e+00)
285         beta:  6.612e-02  0.000e+00 -5.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.279e+00  2.593e-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:  8.453e-01  2.315e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.51
Ra Dec: 214.623 35.719
Photon Index (Free Index): 2.99 +/- 0.99
Photon Flux (Free Index): 7.39e-08 +/- 6.52e-08
Energy Flux (Free Index): 1.55e-05 +/- 9.82e-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/143488/cmap_HighResolution_682819201_683078401_4FGL_J1418.4+3543_daily_bin1711.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.52e-05', comment='SUCCESS', photon_flux='2.45e-08', energy_flux2='1.55e-05', photon_flux_error='2.14e-08', dlogl='4.58e-01', energy_flux='1.40e-05', photon_flux2='7.39e-08', job_status='DONE', time_completed='2022-09-16 18:26:16.992385', photon_index_error2='0.99', photon_index2='2.99', ts='3.53', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', photon_flux_upper_limit='7.94e-08', energy_flux_error2='9.82e-06', EG='0.91', time_epoch_completed='1663377976.99', return_code='0', job_id='143488', GAL2='1.28', EG2='0.85', return_code2='0', energy_flux_error='1.22e-05', photon_flux_error2='6.52e-08', ts2='4.51', photon_index='2.02' WHERE bin_id='1711' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 18:26:17 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 143488: <4FGL_J1418.4+3543_daily_bin1711> in cluster <slac> Done

Job <4FGL_J1418.4+3543_daily_bin1711> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 16 18:10:22 2022
Job was executed on host(s) <bullet0115>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 18:15:21 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 18:15:21 2022
Terminated at Fri Sep 16 18:26:17 2022
Results reported at Fri Sep 16 18:26:17 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin1711 214.623 35.7192 682819201 683078401 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 :                                   553.34 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             293.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   656 sec.
    Turnaround time :                            955 sec.

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

