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


Performing analysis on: 4FGL_J2146.8+0425_daily_bin64
RA = 326.708, Dec = 4.4266
tmin = 255916801, tmax = 256176001
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='913487', job_status='RUN', time_executed='2021-09-27 14:06:03.143022', time_epoch_executed='1632776763.14' WHERE source_name='4FGL J2146.8+0425' and cadence='daily' and bin_id='64'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/913487

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/913487/ft1_4FGL_J2146.8+0425_daily_bin64.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/913487/ft2_4FGL_J2146.8+0425_daily_bin64.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/913487/ft1_4FGL_J2146.8+0425_daily_bin64.fits outfile=/scratch/kocevski/913487/ft1_filteredMKT_4FGL_J2146.8+0425_daily_bin64.fits ra=326.708 dec=4.4266 rad=12.0 tmin=255916801.0 tmax=256176001.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.48
user 1.30
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/913487/ft1_filtered_4FGL_J2146.8+0425_daily_bin64.fits" evtable="EVENTS" scfile=/scratch/kocevski/913487/ft2_4FGL_J2146.8+0425_daily_bin64.fits sctable="SC_DATA" outfile=/scratch/kocevski/913487/ltcube_255916801_256176001_4FGL_J2146.8+0425_daily_bin64.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/913487/ft2_4FGL_J2146.8+0425_daily_bin64.fits
.....................!
real 16.87
user 16.46
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/913487/ft1_filtered_4FGL_J2146.8+0425_daily_bin64.fits evtable="EVENTS" scfile=/scratch/kocevski/913487/ft2_4FGL_J2146.8+0425_daily_bin64.fits sctable="SC_DATA" expcube=/scratch/kocevski/913487/ltcube_255916801_256176001_4FGL_J2146.8+0425_daily_bin64.fits outfile=/scratch/kocevski/913487/expmap_255916801_256176001_4FGL_J2146.8+0425_daily_bin64.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/913487/ltcube_255916801_256176001_4FGL_J2146.8+0425_daily_bin64.fits
.....................!
real 193.70
user 186.36
sys 5.71

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/913487/ft1_filtered_4FGL_J2146.8+0425_daily_bin64.fits scfile=/scratch/kocevski/913487/ft2_4FGL_J2146.8+0425_daily_bin64.fits outfile=/scratch/kocevski/913487/cmap_255916801_256176001_4FGL_J2146.8+0425_daily_bin64.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.56
user 0.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/913487/ft1_filtered_4FGL_J2146.8+0425_daily_bin64.fits scfile=/scratch/kocevski/913487/ft2_4FGL_J2146.8+0425_daily_bin64.fits outfile=/scratch/kocevski/913487/cmap_HighResolution_255916801_256176001_4FGL_J2146.8+0425_daily_bin64.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.57
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    20.962       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10819E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.418       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    144.21       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.4985       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.5076       1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.790       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.6571       1.0000         .10000E-03   10000.    
    16 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.8984       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.226       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .20383E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    40.915       1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.9125       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .93530       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0394       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=   9047.768     FROM MIGRAD    STATUS=CONVERGED    574 CALLS     3049 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.105       -.25289E-05** at limit **
   2  Prefactor     20.963        20.857        .11234E-05   -.79069E-04
   3  Prefactor     .10000E-03    12.098        .54909E-05** at limit **
   4  Prefactor     .10000E-03    22.251        .38893E-05** at limit **
   5  Prefactor     17.389        38.517       -.51366E-04   -.91468E-05
   6  Prefactor     .10000E-03    7.3714        .21605E-06** at limit **
   7  Prefactor     144.22        46.559        .70275E-05   -.28847E-04
   8  Prefactor     7.4994        5.7009       -.78379E-07   -.20997E-03
   9  Prefactor     .10000E-03    4.1921       -.34194E-08** at limit **
  10  Prefactor     .10000E-03    .62043       -.14778E-06** at limit **
  11  Prefactor     4.5160        46.951        .21557E-04   -.18147E-04
  12  Prefactor     21.791        28.001        .52158E-06   -.91580E-05
  13  Prefactor     .10000E-03    31.856       -.67050E-05** at limit **
  14  Prefactor     .10000E-03    29.871        .15277E-05** at limit **
  15  norm          5.6568        2.6423        .58953E-08   -.14436E-03
  16  norm          .10000E-03    19.198       -.45164E-05** at limit **
  17  Prefactor     3.8986        3.9863        .20120E-05    .12082E-03
  18  Prefactor     .10000E-03    4.4613       -.52532E-07** at limit **
  19  Prefactor     .10000E-03    8.8781       -.12860E-05** at limit **
  20  Prefactor     11.218        17.070       -.31657E-05   -.17212E-03
  21  Prefactor     .10000E-03    25.392        .92550E-05** at limit **
  22  Prefactor     40.918        33.226        .31742E-05   -.22774E-05
  23  Prefactor     9.9160        12.444        .50823E-06   -.75306E-04
  24  Prefactor     .10000E-03    13.902       -.50158E-05** at limit **
  25  Normalizat    .93503        .23432       -.40964E-05    .26825E-04
  26  Prefactor     1.0396        .10880        .17568E-05   -.43585E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 20.9629
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.3891
  Prefactor  = 0.0001
  Prefactor  = 144.225
  Prefactor  = 7.49938
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.51597
  Prefactor  = 21.7914
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.65676
  norm       = 0.0001
  Prefactor  = 3.89865
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.218
  Prefactor  = 0.0001
  Prefactor  = 40.9176
  Prefactor  = 9.91605
  Prefactor  = 0.0001
  Normalizat = 0.935033
  Prefactor  = 1.03955
 **********
 **   18 **HESSE 
 **********

 FCN=   9047.768     FROM HESSE     STATUS=OK           454 CALLS     3503 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     20.963        20.845        .87484E-04   -1.4792    
   3  Prefactor     .10000E-03    12.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    22.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     17.389        38.562        .95967E-04   -1.4874    
   6  Prefactor     .10000E-03    7.3805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     144.22        46.530        .16776E-03   -1.3300    
   8  Prefactor     7.4994        5.7039        .14646E-03   -1.5160    
   9  Prefactor     .10000E-03    4.2257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .62324        .73066E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.5160        46.884        .18963E-03   -1.5283    
  12  Prefactor     21.791        28.000        .85806E-04   -1.4774    
  13  Prefactor     .10000E-03    31.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    29.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.6568        2.6441        .99489E-04   -1.5232    
  16  norm          .10000E-03    19.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.8986        3.9917        .18670E-03   -1.5313    
  18  Prefactor     .10000E-03    4.4817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.8991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.218        17.073        .11957E-03   -1.5038    
  21  Prefactor     .10000E-03    25.673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     40.918        33.368        .62668E-04   -1.4428    
  23  Prefactor     9.9160        12.469        .12727E-03   -1.5078    
  24  Prefactor     .10000E-03    14.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .93503        .27533        .37373E-03   -.95240    
  26  Prefactor     1.0396        .12854        .18144E-03   -.91423    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.62807e-10
Minuit parameter uncertainties:
  1  5.63663e-05
  2  20.8522
  3  2.75097e-05
  4  5.02872e-06
  5  38.617
  6  8.95431e-06
  7  46.5419
  8  5.70435
  9  4.49477e-06
  10  1.40112e-05
  11  29.1307
  12  28.0169
  13  1.31389e-06
  14  0.00011101
  15  2.64411
  16  1.07295e-05
  17  3.99199
  18  3.86176e-06
  19  1.77515e-05
  20  17.0804
  21  0.000129248
  22  33.3829
  23  12.472
  24  2.56928e-05
  25  0.275749
  26  0.128574
Done.

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

Extracting fit parameters...

4FGL J2146.8+0425
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  1.110e-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.040e+00  1.286e-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:  9.350e-01  2.757e-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: 8.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/913487/likelihoodResults_255916801_256176001_4FGL_J2146.8+0425_daily_bin64.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) = 9047.7677989
delta logL = -0.000159128034284

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9047.76763989
delta logL = -1.20810000226e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10312E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6283       1.0000          .0000       10.000    
     3 'Normalizat'    .93505       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0395       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=   9047.768     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      233 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7765.8        .90712E-02** at limit **
   2  Index         2.6391        7.2861        .50000       -.34337E-05
   3  Normalizat    .93503        .19282        .84414E-01    .79872E-04
   4  Prefactor     1.0396        .97800E-01    .40564E-01    .71342E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.63914
  Normalizat = 0.935029
  Prefactor  = 1.03955
 **********
 **   18 **HESSE 
 **********

 FCN=   9047.768     FROM HESSE     STATUS=OK            31 CALLS      264 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6391        6.3175        .50000       -.49175    
   3  Normalizat    .93503        .24452        .37373E-03   -.95240    
   4  Prefactor     1.0396        .12557        .18143E-03   -.91422    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76522e-11
Minuit parameter uncertainties:
  1  0.000257295
  2  4.57794
  3  0.244808
  4  0.125605
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/913487': 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) = 9047.76763982
delta logL = -5.43095666217e-08

Extracting fit parameters...

4FGL J2146.8+0425
   Spectrum: PowerLaw
295    Prefactor:  1.000e-04  2.573e-04  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  2.639e+00  4.578e+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.040e+00  1.256e-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:  9.350e-01  2.448e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/913487/cmap_HighResolution_255916801_256176001_4FGL_J2146.8+0425_daily_bin64.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.85e-03', job_status='DONE', photon_flux_upper_limit='8.70e-08', time_completed='2021-09-27 14:21:27.965431', job_id='913487', GAL2='1.04', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1632777687.97', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='-5.43e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='64' AND source_name='4FGL J2146.8+0425' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 14:21:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 913487: <4FGL_J2146.8+0425_daily_bin64> in cluster <slac> Done

Job <4FGL_J2146.8+0425_daily_bin64> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 27 14:05:14 2021
Job was executed on host(s) <bullet0249>, 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:21:29 2021
Results reported at Mon Sep 27 14:21:29 2021

Your job looked like:

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

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

