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


Performing analysis on: 4FGL_J2146.8+0425_daily_bin65
RA = 326.708, Dec = 4.4266
tmin = 256176001, tmax = 256435201
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='913489', job_status='RUN', time_executed='2021-09-27 14:06:08.849487', time_epoch_executed='1632776768.85' WHERE source_name='4FGL J2146.8+0425' and cadence='daily' and bin_id='65'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/913489

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/913489/ft1_4FGL_J2146.8+0425_daily_bin65.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/913489/ft2_4FGL_J2146.8+0425_daily_bin65.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/913489/ft1_4FGL_J2146.8+0425_daily_bin65.fits outfile=/scratch/kocevski/913489/ft1_filteredMKT_4FGL_J2146.8+0425_daily_bin65.fits ra=326.708 dec=4.4266 rad=12.0 tmin=256176001.0 tmax=256435201.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.47
user 1.28
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/913489/ft2_4FGL_J2146.8+0425_daily_bin65.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/913489/ft1_filteredMKT_4FGL_J2146.8+0425_daily_bin65.fits evtable="EVENTS" outfile="/scratch/kocevski/913489/ft1_filtered_4FGL_J2146.8+0425_daily_bin65.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.54
user 0.37
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/913489/ft1_filtered_4FGL_J2146.8+0425_daily_bin65.fits" evtable="EVENTS" scfile=/scratch/kocevski/913489/ft2_4FGL_J2146.8+0425_daily_bin65.fits sctable="SC_DATA" outfile=/scratch/kocevski/913489/ltcube_256176001_256435201_4FGL_J2146.8+0425_daily_bin65.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/913489/ft2_4FGL_J2146.8+0425_daily_bin65.fits
.....................!
real 19.07
user 18.57
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/913489/ft1_filtered_4FGL_J2146.8+0425_daily_bin65.fits evtable="EVENTS" scfile=/scratch/kocevski/913489/ft2_4FGL_J2146.8+0425_daily_bin65.fits sctable="SC_DATA" expcube=/scratch/kocevski/913489/ltcube_256176001_256435201_4FGL_J2146.8+0425_daily_bin65.fits outfile=/scratch/kocevski/913489/expmap_256176001_256435201_4FGL_J2146.8+0425_daily_bin65.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/913489/ltcube_256176001_256435201_4FGL_J2146.8+0425_daily_bin65.fits
.....................!
real 196.28
user 190.14
sys 4.72

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/913489/ft1_filtered_4FGL_J2146.8+0425_daily_bin65.fits scfile=/scratch/kocevski/913489/ft2_4FGL_J2146.8+0425_daily_bin65.fits outfile=/scratch/kocevski/913489/cmap_256176001_256435201_4FGL_J2146.8+0425_daily_bin65.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.58
user 0.38
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/913489/ft1_filtered_4FGL_J2146.8+0425_daily_bin65.fits scfile=/scratch/kocevski/913489/ft2_4FGL_J2146.8+0425_daily_bin65.fits outfile=/scratch/kocevski/913489/cmap_HighResolution_256176001_256435201_4FGL_J2146.8+0425_daily_bin65.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.58
user 0.41
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/913489/ft1_filtered_4FGL_J2146.8+0425_daily_bin65.fits', '/scratch/kocevski/913489/ft2_4FGL_J2146.8+0425_daily_bin65.fits', expMap='/scratch/kocevski/913489/expmap_256176001_256435201_4FGL_J2146.8+0425_daily_bin65.fits', expCube='/scratch/kocevski/913489/ltcube_256176001_256435201_4FGL_J2146.8+0425_daily_bin65.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/913489/Model_4FGL_J2146.8+0425_daily_bin65.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/913489/ft1_filtered_4FGL_J2146.8+0425_daily_bin65.fits
Spacecraft file(s): /scratch/kocevski/913489/ft2_4FGL_J2146.8+0425_daily_bin65.fits
Exposure map: /scratch/kocevski/913489/expmap_256176001_256435201_4FGL_J2146.8+0425_daily_bin65.fits
Exposure cube: /scratch/kocevski/913489/ltcube_256176001_256435201_4FGL_J2146.8+0425_daily_bin65.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/913489/Model_4FGL_J2146.8+0425_daily_bin65.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) = 7865.63719354

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.3542       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    33.084       1.0000         .10000E-03   10000.    
     7 'Prefactor '    72.198       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.079       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .72845       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .18636E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.6350       1.0000         .10000E-03   10000.    
    15 'norm      '    2.8238       1.0000         .10000E-03   10000.    
    16 'norm      '    23.680       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .56436       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.1076       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.4792       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.817       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10759E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    20.923       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .75213       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0175       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=   7865.593     FROM MIGRAD    STATUS=CONVERGED    627 CALLS     3130 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.508        .82906E-07** at limit **
   2  Prefactor     .10000E-03    6.8107       -.79950E-07** at limit **
   3  Prefactor     9.3516        11.984       -.23738E-06   -.61817E-04
   4  Prefactor     .10000E-03    7.3558        .48398E-07** at limit **
   5  Prefactor     .10000E-03    20.656       -.20613E-05** at limit **
   6  Prefactor     33.079        24.975        .42746E-06    .23238E-05
   7  Prefactor     72.229        52.912       -.32055E-05   -.15341E-03
   8  Prefactor     .10000E-03    2.3547       -.53367E-07** at limit **
   9  Prefactor     10.079        6.9757        .11474E-05   -.20894E-03
  10  Prefactor     .72513        2.8248        .17242E-05   -.20064E-05
  11  Prefactor     .10000E-03    16.898       -.79041E-06** at limit **
  12  Prefactor     .10000E-03    310.05       -.59183E-05** at limit **
  13  Prefactor     .10000E-03    19.715        .26374E-05** at limit **
  14  Prefactor     8.6730        55.779       -.11576E-05    .10106E-03
  15  norm          2.8239        2.0286        .11721E-06    .60988E-04
  16  norm          23.678        20.610        .46991E-06    .12085E-03
  17  Prefactor     .55298        6.9787       -.17108E-05    .73814E-03
  18  Prefactor     .10000E-03    3.2089        .66598E-08** at limit **
  19  Prefactor     6.1044        17.315       -.70171E-06   -.64003E-04
  20  Prefactor     4.4811        18.072        .83728E-06    .25370E-04
  21  Prefactor     10.815        22.577        .26523E-06    .20337E-04
  22  Prefactor     .10000E-03    120.09        .15725E-05** at limit **
  23  Prefactor     20.929        14.838        .15352E-05    .33336E-03
  24  Prefactor     .10000E-03    2.8729       -.44678E-11** at limit **
  25  Normalizat    .75196        .23760       -.40909E-05   -.32816E-04
  26  Prefactor     1.0175        .10969        .45819E-06   -.27716E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.35162
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 33.0785
  Prefactor  = 72.229
  Prefactor  = 0.0001
  Prefactor  = 10.0794
  Prefactor  = 0.725127
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 8.67304
  norm       = 2.82391
  norm       = 23.6776
  Prefactor  = 0.552979
  Prefactor  = 0.0001
  Prefactor  = 6.10441
  Prefactor  = 4.48115
  Prefactor  = 10.8153
  Prefactor  = 0.000100003
  Prefactor  = 20.9288
  Prefactor  = 0.0001
  Normalizat = 0.751964
  Prefactor  = 1.01753
 **********
 **   18 **HESSE 
 **********

 FCN=   7865.593     FROM HESSE     STATUS=OK           460 CALLS     3590 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.8266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.3516        11.989        .13103E-03   -1.5096    
   4  Prefactor     .10000E-03    7.3601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    20.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     33.079        25.001        .69666E-04   -1.4557    
   7  Prefactor     72.229        53.194        .47248E-04   -1.4006    
   8  Prefactor     .10000E-03    2.3760        .13281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.079        6.9718        .63108E-03   -1.5073    
  10  Prefactor     .72513        4.1476        .21061E-02   -1.5538    
  11  Prefactor     .10000E-03    16.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    318.10        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    20.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.6730        53.500        .13641E-03   -1.5119    
  15  norm          2.8239        2.0250        .10024E-03   -1.5372    
  16  norm          23.678        20.596        .82316E-04   -1.4734    
  17  Prefactor     .55298        15.949        .36680E-02   -1.5559    
  18  Prefactor     .10000E-03    3.2127        .15513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.1044        17.394        .16245E-03   -1.5214    
  20  Prefactor     4.4811        17.676        .19025E-03   -1.5285    
  21  Prefactor     10.815        22.258        .12182E-03   -1.5050    
  22  Prefactor     .10000E-03    124.48        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     20.929        15.050        .87564E-04   -1.4793    
  24  Prefactor     .10000E-03    2.8734        .14681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .75196        .27130        .38011E-03   -1.0188    
  26  Prefactor     1.0175        .12843        .17123E-03   -.92147    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.44501e-08
Minuit parameter uncertainties:
  1  1.33465e-05
  2  9.53872e-06
  3  11.9924
  4  6.37744e-06
  5  0.000253207
  6  25.0086
  7  53.2288
  8  3.12045e-07
  9  6.97237
  10  3.46856
  11  5.67808e-05
  12  0.000890175
  13  0.000338972
  14  43.1388
  15  2.02506
  16  20.6021
  17  5.94065
  18  3.82311e-06
  19  17.4086
  20  17.6966
  21  22.2749
  22  0.00129951
  23  15.0523
  24  9.93446e-07
  25  0.271783
  26  0.128469
Done.

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

Extracting fit parameters...

4FGL J2146.8+0425
   Spectrum: PowerLaw
295    Prefactor:  8.673e+00  4.314e+01  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.018e+00  1.285e-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:  7.520e-01  2.718e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.06
Ra Dec: 326.708 4.427
Photon Flux Upper Limit: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/913489/likelihoodResults_256176001_256435201_4FGL_J2146.8+0425_daily_bin65.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) = 7865.55442199
delta logL = 0.0390546576455

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7865.55237555
delta logL = 0.0411011004226

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.3756       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2838       1.0000          .0000       10.000    
     3 'Normalizat'    .74159       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0205       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7865.552     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      345 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3780        29.426        .14768E-03    .61354E-04
   2  Index         3.2838        2.1233        .78862E-02    .60902E-04
   3  Normalizat    .74152        .24727        .38257E-03    .35752E-03
   4  Prefactor     1.0206        .12667        .17099E-03    .40356E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.37801
  Index      = 3.28382
  Normalizat = 0.741516
  Prefactor  = 1.02058
 **********
 **   18 **HESSE 
 **********

 FCN=   7865.552     FROM HESSE     STATUS=OK            23 CALLS      368 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.3780        26.875        .59073E-05   -1.5165    
   2  Index         3.2838        1.9490        .31545E-03   -.35036    
   3  Normalizat    .74152        .24753        .15303E-04   -1.0228    
   4  Prefactor     1.0206        .12675        .34198E-04   -.92047    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.87837e-10
Minuit parameter uncertainties:
  1  26.9192
  2  2.0098
  3  0.247906
  4  0.126782
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/913489': 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) = 7865.55237546
delta logL = 0.0411011874376

Extracting fit parameters...

4FGL J2146.8+0425
   Spectrum: PowerLaw
295    Prefactor:  7.378e+00  2.692e+01  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  3.284e+00  2.010e+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.021e+00  1.268e-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:  7.415e-01  2.479e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
Ra Dec: 326.708 4.427

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/913489/cmap_HighResolution_256176001_256435201_4FGL_J2146.8+0425_daily_bin65.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.37e-03', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-09-27 14:20:47.093812', job_id='913489', GAL2='1.02', fit_tolerance='1e-08', EG2='0.74', EG='0.75', time_epoch_completed='1632777647.09', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='4.11e-02', ts2='0.15', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='65' AND source_name='4FGL J2146.8+0425' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 14:20:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 913489: <4FGL_J2146.8+0425_daily_bin65> in cluster <slac> Done

Job <4FGL_J2146.8+0425_daily_bin65> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 14:05:15 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 14:05:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 27 14:05:50 2021
Terminated at Mon Sep 27 14:20:47 2021
Results reported at Mon Sep 27 14:20:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2146.8+0425_daily_bin65 326.708 4.4266 256176001 256435201 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 :                                   873.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             352.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   897 sec.
    Turnaround time :                            932 sec.

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

