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


Performing analysis on: 4FGL_J2146.8+0425_daily_bin1697
RA = 326.708, Dec = 4.4266
tmin = 679190401, tmax = 679449601
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='857644', job_status='RUN', time_executed='2022-07-14 00:37:11.256106', time_epoch_executed='1657784231.26' WHERE source_name='4FGL J2146.8+0425' and cadence='daily' and bin_id='1697'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/857644

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/857644/ft1_4FGL_J2146.8+0425_daily_bin1697.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/857644/ft2_4FGL_J2146.8+0425_daily_bin1697.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/857644/ft1_4FGL_J2146.8+0425_daily_bin1697.fits outfile=/scratch/kocevski/857644/ft1_filteredMKT_4FGL_J2146.8+0425_daily_bin1697.fits ra=326.708 dec=4.4266 rad=12.0 tmin=679190401.0 tmax=679449601.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.41
user 3.21
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/857644/ft2_4FGL_J2146.8+0425_daily_bin1697.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/857644/ft2_4FGL_J2146.8+0425_daily_bin1697.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/857644/ft1_filteredMKT_4FGL_J2146.8+0425_daily_bin1697.fits evtable="EVENTS" outfile="/scratch/kocevski/857644/ft1_filtered_4FGL_J2146.8+0425_daily_bin1697.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: 616

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/857644/ft1_filtered_4FGL_J2146.8+0425_daily_bin1697.fits" evtable="EVENTS" scfile=/scratch/kocevski/857644/ft2_4FGL_J2146.8+0425_daily_bin1697.fits sctable="SC_DATA" outfile=/scratch/kocevski/857644/ltcube_679190401_679449601_4FGL_J2146.8+0425_daily_bin1697.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/857644/ft2_4FGL_J2146.8+0425_daily_bin1697.fits
.....................!
real 11.74
user 11.38
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/857644/ft1_filtered_4FGL_J2146.8+0425_daily_bin1697.fits evtable="EVENTS" scfile=/scratch/kocevski/857644/ft2_4FGL_J2146.8+0425_daily_bin1697.fits sctable="SC_DATA" expcube=/scratch/kocevski/857644/ltcube_679190401_679449601_4FGL_J2146.8+0425_daily_bin1697.fits outfile=/scratch/kocevski/857644/expmap_679190401_679449601_4FGL_J2146.8+0425_daily_bin1697.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/857644/ltcube_679190401_679449601_4FGL_J2146.8+0425_daily_bin1697.fits
.....................!
real 192.11
user 186.60
sys 5.16

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 171 point sources and 0 extended sources

Setting source of interest to:
4FGL J2146.8+0425 @ 326.708 4.4266

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/857644/ft1_filtered_4FGL_J2146.8+0425_daily_bin1697.fits scfile=/scratch/kocevski/857644/ft2_4FGL_J2146.8+0425_daily_bin1697.fits outfile=/scratch/kocevski/857644/cmap_679190401_679449601_4FGL_J2146.8+0425_daily_bin1697.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=326.708 yref=4.4266 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/857644/ft1_filtered_4FGL_J2146.8+0425_daily_bin1697.fits scfile=/scratch/kocevski/857644/ft2_4FGL_J2146.8+0425_daily_bin1697.fits outfile=/scratch/kocevski/857644/cmap_HighResolution_679190401_679449601_4FGL_J2146.8+0425_daily_bin1697.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=326.708 yref=4.4266 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/857644/ft1_filtered_4FGL_J2146.8+0425_daily_bin1697.fits evtable="EVENTS" scfile=/scratch/kocevski/857644/ft2_4FGL_J2146.8+0425_daily_bin1697.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/857644/Model_4FGL_J2146.8+0425_daily_bin1697.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/857644/ft1_filtered_4FGL_J2146.8+0425_daily_bin1697.fits.....................!
real 65.98
user 64.64
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/857644/ft1_filtered_4FGL_J2146.8+0425_daily_bin1697.fits', '/scratch/kocevski/857644/ft2_4FGL_J2146.8+0425_daily_bin1697.fits', expMap='/scratch/kocevski/857644/expmap_679190401_679449601_4FGL_J2146.8+0425_daily_bin1697.fits', expCube='/scratch/kocevski/857644/ltcube_679190401_679449601_4FGL_J2146.8+0425_daily_bin1697.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/857644/Model_4FGL_J2146.8+0425_daily_bin1697.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2146.8+0425'

4FGL J2146.8+0425
   Spectrum: PowerLaw
295    Prefactor:  6.838e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  2.709e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
297        Scale:  6.856e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/857644/ft1_filtered_4FGL_J2146.8+0425_daily_bin1697.fits
Spacecraft file(s): /scratch/kocevski/857644/ft2_4FGL_J2146.8+0425_daily_bin1697.fits
Exposure map: /scratch/kocevski/857644/expmap_679190401_679449601_4FGL_J2146.8+0425_daily_bin1697.fits
Exposure cube: /scratch/kocevski/857644/ltcube_679190401_679449601_4FGL_J2146.8+0425_daily_bin1697.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/857644/Model_4FGL_J2146.8+0425_daily_bin1697.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) = 6877.44052281

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    82.212       1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.631       1.0000         .10000E-03   10000.    
     3 'Prefactor '    32.054       1.0000         .10000E-03   10000.    
     4 'Prefactor '    35.551       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    95.147       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .16074E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.1738       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.6045       1.0000         .10000E-03   10000.    
    16 'norm      '    12.394       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.0751       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.218       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.6563       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10656E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    27.813       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .46484       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1028       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6877.417     FROM MIGRAD    STATUS=CONVERGED    597 CALLS     3138 TOTAL
                     EDM=   .68E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     82.213        52.816       -.23844E-06   -.33883E-05
   2  Prefactor     20.622        30.829       -.24862E-06   -.14353E-04
   3  Prefactor     32.057        30.115        .37554E-07    .13673E-04
   4  Prefactor     35.538        35.143       -.54465E-07   -.17331E-04
   5  Prefactor     .10000E-03    57.983        .18998E-07** at limit **
   6  Prefactor     .10000E-03    11.155       -.15329E-06** at limit **
   7  Prefactor     95.175        56.706       -.27269E-06    .25048E-04
   8  Prefactor     .10000E-03    3.1504       -.68116E-06** at limit **
   9  Prefactor     .10000E-03    1.6493       -.48891E-07** at limit **
  10  Prefactor     .10000E-03    1.0288        .71858E-06** at limit **
  11  Prefactor     6.1921        49.006       -.10921E-05   -.99812E-06
  12  Prefactor     .10000E-03    13.062        .32135E-06** at limit **
  13  Prefactor     .10000E-03    23.786       -.12450E-06** at limit **
  14  Prefactor     .10000E-03    38.380        .25117E-06** at limit **
  15  norm          1.6049        1.8151        .34091E-07    .19866E-04
  16  norm          12.399        18.044       -.34610E-06   -.27548E-04
  17  Prefactor     1.0763        6.8614        .40325E-05    .35637E-04
  18  Prefactor     11.224        11.559        .20771E-07   -.46001E-04
  19  Prefactor     1.6574        34.274        .58130E-06   -.15225E-04
  20  Prefactor     .10000E-03    45.250        .13011E-06** at limit **
  21  Prefactor     .10000E-03    14.981       -.13554E-06** at limit **
  22  Prefactor     .10000E-03    22.115       -.50273E-06** at limit **
  23  Prefactor     27.821        14.669        .21905E-08   -.11131E-04
  24  Prefactor     .10000E-03    8.1478       -.98273E-07** at limit **
  25  Normalizat    .46400        .26671        .11922E-05   -.75193E-05
  26  Prefactor     1.1031        .12699       -.29662E-06    .44397E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 82.2135
  Prefactor  = 20.6217
  Prefactor  = 32.057
  Prefactor  = 35.5383
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 95.1746
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.19207
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.60485
  norm       = 12.3986
  Prefactor  = 1.07626
  Prefactor  = 11.2241
  Prefactor  = 1.6574
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.8207
  Prefactor  = 0.0001
  Normalizat = 0.464
  Prefactor  = 1.10313
 **********
 **   18 **HESSE 
 **********

 FCN=   6877.417     FROM HESSE     STATUS=OK           456 CALLS     3594 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     82.213        52.829        .44299E-04   -1.3892    
   2  Prefactor     20.622        30.743        .88182E-04   -1.4799    
   3  Prefactor     32.057        30.090        .70773E-04   -1.4575    
   4  Prefactor     35.538        35.079        .67213E-04   -1.4515    
   5  Prefactor     .10000E-03    57.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     95.175        56.280        .41205E-04   -1.3754    
   8  Prefactor     .10000E-03    6.3098        .27686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.6513        .10400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.0426        .81876E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.1921        48.333        .16157E-03   -1.5210    
  12  Prefactor     .10000E-03    13.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    23.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    38.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.6049        1.7833        .11173E-03   -1.5455    
  16  norm          12.399        17.951        .11378E-03   -1.5004    
  17  Prefactor     1.0763        6.8615        .41751E-03   -1.5500    
  18  Prefactor     11.224        11.517        .11961E-03   -1.5038    
  19  Prefactor     1.6574        34.041        .32791E-03   -1.5450    
  20  Prefactor     .10000E-03    46.472        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    15.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    22.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     27.821        14.630        .75965E-04   -1.4653    
  24  Prefactor     .10000E-03    8.1722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .46400        .27170        .46680E-03   -1.1411    
  26  Prefactor     1.1031        .13434        .16253E-03   -.89366    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19864e-10
Minuit parameter uncertainties:
  1  52.8589
  2  30.7661
  3  30.1038
  4  35.0997
  5  0.000431704
  6  3.29746e-05
  7  56.3112
  8  0.000163687
  9  1.06638e-07
  10  1.56063e-06
  11  34.6378
  12  4.03019e-05
  13  4.90497e-05
  14  0.000136251
  15  1.7834
  16  17.9592
  17  5.43565
  18  11.5195
  19  15.0319
  20  7.56173e-05
  21  4.46976e-06
  22  9.74736e-05
  23  14.6315
  24  4.14757e-07
  25  0.272479
  26  0.134384
Done.

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

Extracting fit parameters...

4FGL J2146.8+0425
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  1.363e-04  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  2.709e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
297        Scale:  6.856e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  1.103e+00  1.344e-01  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
549   Normalization:  4.640e-01  2.725e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 326.708 4.427
Photon Flux Upper Limit: 9.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/857644/likelihoodResults_679190401_679449601_4FGL_J2146.8+0425_daily_bin1697.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) = 6877.41743009
delta logL = -0.000124102780319

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6877.41730599
delta logL = -5.50335244043e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6392       1.0000          .0000       10.000    
     3 'Normalizat'    .46401       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1031       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6877.417     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      236 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8345.7        .90712E-02** at limit **
   2  Index         2.6403        7.1282        .50000       -.26994E-06
   3  Normalizat    .46400        .20453        .10534        .53295E-04
   4  Prefactor     1.1031        .10619        .37469E-01   -.67737E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.64028
  Normalizat = 0.464001
  Prefactor  = 1.10313
 **********
 **   18 **HESSE 
 **********

 FCN=   6877.417     FROM HESSE     STATUS=OK            33 CALLS      269 TOTAL
                     EDM=   .11E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    40.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6403        6.3178        .50000       -.49149    
   3  Normalizat    .46400        .24997        .46682E-03   -1.1411    
   4  Prefactor     1.1031        .13191        .16253E-03   -.89367    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08711e-13
Minuit parameter uncertainties:
  1  8.81719e-06
  2  4.56732
  3  0.25058
  4  0.131948
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/857644': 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) = 6877.41730598
delta logL = -1.83536030818e-09

Extracting fit parameters...

4FGL J2146.8+0425
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  8.817e-06  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  2.640e+00  4.567e+00  0.000e+00  1.000e+01 (-1.000e+00)
297        Scale:  6.856e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  1.103e+00  1.319e-01  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
549   Normalization:  4.640e-01  2.506e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 326.708 4.427

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/857644/cmap_HighResolution_679190401_679449601_4FGL_J2146.8+0425_daily_bin1697.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.83e-03', job_status='DONE', photon_flux_upper_limit='9.94e-08', time_completed='2022-07-14 00:49:45.289465', job_id='857644', GAL2='1.10', fit_tolerance='1e-08', EG2='0.46', EG='0.46', time_epoch_completed='1657784985.29', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='-1.84e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='1697' AND source_name='4FGL J2146.8+0425' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jul 14 00:49:45 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 857644: <4FGL_J2146.8+0425_daily_bin1697> in cluster <slac> Done

Job <4FGL_J2146.8+0425_daily_bin1697> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Jul 14 00:35:47 2022
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jul 14 00:35:48 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jul 14 00:35:48 2022
Terminated at Thu Jul 14 00:49:46 2022
Results reported at Thu Jul 14 00:49:46 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2146.8+0425_daily_bin1697 326.708 4.4266 679190401 679449601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2146.8+0425 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   755.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             338.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            839 sec.

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

