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


Performing analysis on: 4FGL_J2146.8+0425_daily_bin46
RA = 326.708, Dec = 4.4266
tmin = 251251201, tmax = 251510401
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='913460', job_status='RUN', time_executed='2021-09-27 14:06:13.188873', time_epoch_executed='1632776773.19' WHERE source_name='4FGL J2146.8+0425' and cadence='daily' and bin_id='46'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/913460

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/913460/ft1_4FGL_J2146.8+0425_daily_bin46.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/913460/ft2_4FGL_J2146.8+0425_daily_bin46.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/913460/ft1_4FGL_J2146.8+0425_daily_bin46.fits outfile=/scratch/kocevski/913460/ft1_filteredMKT_4FGL_J2146.8+0425_daily_bin46.fits ra=326.708 dec=4.4266 rad=12.0 tmin=251251201.0 tmax=251510401.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/913460/ft2_4FGL_J2146.8+0425_daily_bin46.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/913460/ft2_4FGL_J2146.8+0425_daily_bin46.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/913460/ft1_filteredMKT_4FGL_J2146.8+0425_daily_bin46.fits evtable="EVENTS" outfile="/scratch/kocevski/913460/ft1_filtered_4FGL_J2146.8+0425_daily_bin46.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.50
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/913460/ft1_filtered_4FGL_J2146.8+0425_daily_bin46.fits" evtable="EVENTS" scfile=/scratch/kocevski/913460/ft2_4FGL_J2146.8+0425_daily_bin46.fits sctable="SC_DATA" outfile=/scratch/kocevski/913460/ltcube_251251201_251510401_4FGL_J2146.8+0425_daily_bin46.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/913460/ft2_4FGL_J2146.8+0425_daily_bin46.fits
.....................!
real 14.16
user 13.79
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/913460/ft1_filtered_4FGL_J2146.8+0425_daily_bin46.fits evtable="EVENTS" scfile=/scratch/kocevski/913460/ft2_4FGL_J2146.8+0425_daily_bin46.fits sctable="SC_DATA" expcube=/scratch/kocevski/913460/ltcube_251251201_251510401_4FGL_J2146.8+0425_daily_bin46.fits outfile=/scratch/kocevski/913460/expmap_251251201_251510401_4FGL_J2146.8+0425_daily_bin46.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/913460/ltcube_251251201_251510401_4FGL_J2146.8+0425_daily_bin46.fits
.....................!
real 191.39
user 185.34
sys 5.70

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/913460/ft1_filtered_4FGL_J2146.8+0425_daily_bin46.fits scfile=/scratch/kocevski/913460/ft2_4FGL_J2146.8+0425_daily_bin46.fits outfile=/scratch/kocevski/913460/cmap_251251201_251510401_4FGL_J2146.8+0425_daily_bin46.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.55
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/913460/ft1_filtered_4FGL_J2146.8+0425_daily_bin46.fits scfile=/scratch/kocevski/913460/ft2_4FGL_J2146.8+0425_daily_bin46.fits outfile=/scratch/kocevski/913460/cmap_HighResolution_251251201_251510401_4FGL_J2146.8+0425_daily_bin46.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .58935E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.711       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .33773E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    112.10       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11074E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.4275       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.4688       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.3971       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10458E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    36.357       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.5880       1.0000         .10000E-03   10000.    
    15 'norm      '    5.3445       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13690E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.727       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.710       1.0000         .10000E-03   10000.    
    22 'Prefactor '    59.778       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.5663       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .80545       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .88333       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=   8711.392     FROM MIGRAD    STATUS=CONVERGED    629 CALLS     3135 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.769        .54036E-07** at limit **
   2  Prefactor     .10032E-03    68.741        .20250E-04** at limit **
   3  Prefactor     19.737        16.883        .20858E-05    .32852E-03
   4  Prefactor     .10006E-03    22.256       -.84581E-05** at limit **
   5  Prefactor     112.10        54.436       -.59687E-06    .22967E-03
   6  Prefactor     .10000E-03    26.522        .27054E-07** at limit **
   7  Prefactor     .10000E-03    42.909       -.35388E-05** at limit **
   8  Prefactor     3.4277        5.3532       -.27602E-05    .38995E-03
   9  Prefactor     7.4677        8.1173       -.14190E-07    .13031E-03
  10  Prefactor     1.3968        1.4431        .11751E-06    .24581E-02
  11  Prefactor     .10000E-03    11.744       -.77585E-06** at limit **
  12  Prefactor     36.350        35.316       -.35746E-06    .25749E-03
  13  Prefactor     .10000E-03    48.234        .26981E-05** at limit **
  14  Prefactor     6.6241        38.778        .13194E-05    .12774E-03
  15  norm          5.3441        2.3844       -.27154E-06   -.41918E-03
  16  norm          .10000E-03    9.1653       -.19644E-06** at limit **
  17  Prefactor     .10049E-03    39.071        .18214E-04** at limit **
  18  Prefactor     .10000E-03    6.9802       -.20550E-06** at limit **
  19  Prefactor     18.726        17.472       -.57629E-06    .24485E-04
  20  Prefactor     .10000E-03    11.326        .41982E-06** at limit **
  21  Prefactor     17.712        14.267       -.65330E-06   -.19185E-03
  22  Prefactor     59.795        31.502       -.19433E-06    .78185E-04
  23  Prefactor     6.5618        9.8870       -.46498E-06   -.12653E-04
  24  Prefactor     .10000E-03    4.1924       -.67481E-07** at limit **
  25  Normalizat    .80552        .19853        .43533E-05    .74714E-03
  26  Prefactor     .88338        .95252E-01   -.34821E-06    .10816E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.00010032
  Prefactor  = 19.737
  Prefactor  = 0.000100057
  Prefactor  = 112.098
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.42765
  Prefactor  = 7.46773
  Prefactor  = 1.39677
  Prefactor  = 0.0001
  Prefactor  = 36.3503
  Prefactor  = 0.000100001
  Prefactor  = 6.62406
  norm       = 5.34406
  norm       = 0.0001
  Prefactor  = 0.000100491
  Prefactor  = 0.0001
  Prefactor  = 18.7261
  Prefactor  = 0.0001
  Prefactor  = 17.7119
  Prefactor  = 59.7951
  Prefactor  = 6.56182
  Prefactor  = 0.0001
  Normalizat = 0.805525
  Prefactor  = 0.883377
 **********
 **   18 **HESSE 
 **********

 FCN=   8711.392     FROM HESSE     STATUS=OK           470 CALLS     3605 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10032E-03    122.42        .65802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     19.737        16.935        .90215E-04   -1.4819    
   4  Prefactor     .10006E-03    15.181        .12174       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     112.10        54.424        .37993E-04   -1.3586    
   6  Prefactor     .10000E-03    26.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    42.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.4277        5.3872        .10924E-02   -1.5338    
   9  Prefactor     7.4677        8.0779        .73375E-03   -1.5161    
  10  Prefactor     1.3968        1.4316        .10932E-03   -1.5472    
  11  Prefactor     .10000E-03    11.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     36.350        35.249        .66466E-04   -1.4501    
  13  Prefactor     .10000E-03    48.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.6241        39.018        .15635E-03   -1.5193    
  15  norm          5.3441        2.3842        .45491E-03   -1.5246    
  16  norm          .10000E-03    9.2115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10049E-03    5.3308        .58911E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.0609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     18.726        17.480        .92553E-04   -1.4842    
  20  Prefactor     .10000E-03    11.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     17.712        14.288        .95172E-04   -1.4866    
  22  Prefactor     59.795        31.501        .51893E-04   -1.4160    
  23  Prefactor     6.5618        9.8887        .15661E-03   -1.5196    
  24  Prefactor     .10000E-03    4.1969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .80552        .23037        .34996E-03   -.99864    
  26  Prefactor     .88338        .11203        .17202E-03   -.96724    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.4183e-09
Minuit parameter uncertainties:
  1  1.58413e-05
  2  0.0125473
  3  16.9393
  4  0.00186318
  5  54.4485
  6  0.000137648
  7  0.000141462
  8  5.38792
  9  8.07904
  10  1.43166
  11  3.16239e-05
  12  35.2696
  13  0.000336486
  14  32.1847
  15  2.38423
  16  5.59335e-05
  17  0.00323711
  18  4.45927e-05
  19  17.4851
  20  6.54894e-05
  21  14.2904
  22  31.5102
  23  9.89119
  24  1.03818e-05
  25  0.230648
  26  0.112064
Done.

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

Extracting fit parameters...

4FGL J2146.8+0425
   Spectrum: PowerLaw
295    Prefactor:  6.624e+00  3.218e+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:  8.834e-01  1.121e-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:  8.055e-01  2.306e-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: 9.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/913460/likelihoodResults_251251201_251510401_4FGL_J2146.8+0425_daily_bin46.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) = 8711.37387626
delta logL = 0.0179521155715

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8711.36477499
delta logL = 0.027053380767

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.330       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1562       1.0000          .0000       10.000    
     3 'Normalizat'    .80927       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88140       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=   8711.365     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      277 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.371        37.647        .11902E-03   -.15092E-04
   2  Index         2.1538        1.7089        .15183E-01   -.50980E-04
   3  Normalizat    .80965        .21586        .34912E-03    .99905E-04
   4  Prefactor     .88123        .11147        .17220E-03   -.23083E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.3705
  Index      = 2.15376
  Normalizat = 0.809653
  Prefactor  = 0.881228
 **********
 **   18 **HESSE 
 **********

 FCN=   8711.365     FROM HESSE     STATUS=OK            25 CALLS      302 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.371        37.470        .47607E-05   -1.5033    
   2  Index         2.1538        1.7011        .30365E-02   -.60559    
   3  Normalizat    .80965        .21599        .13965E-04   -.99712    
   4  Prefactor     .88123        .11153        .34441E-04   -.96800    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74419e-10
Minuit parameter uncertainties:
  1  37.5472
  2  1.75388
  3  0.216215
  4  0.111554
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/913460': 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) = 8711.3647721
delta logL = 0.0270562729766

Extracting fit parameters...

4FGL J2146.8+0425
   Spectrum: PowerLaw
295    Prefactor:  1.137e+01  3.755e+01  1.000e-04  1.000e+04 ( 1.000e-13)
296        Index:  2.154e+00  1.754e+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:  8.812e-01  1.116e-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:  8.097e-01  2.162e-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/913460/cmap_HighResolution_251251201_251510401_4FGL_J2146.8+0425_daily_bin46.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.22e-03', job_status='DONE', photon_flux_upper_limit='9.17e-08', time_completed='2021-09-27 14:21:23.524526', job_id='913460', GAL2='0.88', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1632777683.52', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='2.71e-02', ts2='0.11', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='46' AND source_name='4FGL J2146.8+0425' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 14:21:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 913460: <4FGL_J2146.8+0425_daily_bin46> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2146.8+0425_daily_bin46 326.708 4.4266 251251201 251510401 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 :                                   910.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   962 sec.
    Turnaround time :                            972 sec.

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

