/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 17 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 = 7364
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2146.5-1344_daily_bin1407
RA = 326.645, Dec = -13.7347
tmin = 604022401, tmax = 604281601
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='912087', job_status='RUN', time_executed='2021-09-27 14:01:32.413295', time_epoch_executed='1632776492.41' WHERE source_name='4FGL J2146.5-1344' and cadence='daily' and bin_id='1407'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/912087

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/912087/ft1_4FGL_J2146.5-1344_daily_bin1407.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/912087/ft2_4FGL_J2146.5-1344_daily_bin1407.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/912087/ft1_4FGL_J2146.5-1344_daily_bin1407.fits outfile=/scratch/kocevski/912087/ft1_filteredMKT_4FGL_J2146.5-1344_daily_bin1407.fits ra=326.645 dec=-13.7347 rad=12.0 tmin=604022401.0 tmax=604281601.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.23
user 4.01
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/912087/ft2_4FGL_J2146.5-1344_daily_bin1407.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/912087/ft2_4FGL_J2146.5-1344_daily_bin1407.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/912087/ft1_filteredMKT_4FGL_J2146.5-1344_daily_bin1407.fits evtable="EVENTS" outfile="/scratch/kocevski/912087/ft1_filtered_4FGL_J2146.5-1344_daily_bin1407.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.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/912087/ft1_filtered_4FGL_J2146.5-1344_daily_bin1407.fits" evtable="EVENTS" scfile=/scratch/kocevski/912087/ft2_4FGL_J2146.5-1344_daily_bin1407.fits sctable="SC_DATA" outfile=/scratch/kocevski/912087/ltcube_604022401_604281601_4FGL_J2146.5-1344_daily_bin1407.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/912087/ft2_4FGL_J2146.5-1344_daily_bin1407.fits
.....................!
real 13.19
user 12.84
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/912087/ft1_filtered_4FGL_J2146.5-1344_daily_bin1407.fits evtable="EVENTS" scfile=/scratch/kocevski/912087/ft2_4FGL_J2146.5-1344_daily_bin1407.fits sctable="SC_DATA" expcube=/scratch/kocevski/912087/ltcube_604022401_604281601_4FGL_J2146.5-1344_daily_bin1407.fits outfile=/scratch/kocevski/912087/expmap_604022401_604281601_4FGL_J2146.5-1344_daily_bin1407.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/912087/ltcube_604022401_604281601_4FGL_J2146.5-1344_daily_bin1407.fits
.....................!
real 190.99
user 186.08
sys 4.49

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.5-1344 @ 326.645 -13.7347

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/912087/ft1_filtered_4FGL_J2146.5-1344_daily_bin1407.fits scfile=/scratch/kocevski/912087/ft2_4FGL_J2146.5-1344_daily_bin1407.fits outfile=/scratch/kocevski/912087/cmap_604022401_604281601_4FGL_J2146.5-1344_daily_bin1407.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.645 yref=-13.7347 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/912087/ft1_filtered_4FGL_J2146.5-1344_daily_bin1407.fits scfile=/scratch/kocevski/912087/ft2_4FGL_J2146.5-1344_daily_bin1407.fits outfile=/scratch/kocevski/912087/cmap_HighResolution_604022401_604281601_4FGL_J2146.5-1344_daily_bin1407.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.645 yref=-13.7347 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/912087/ft1_filtered_4FGL_J2146.5-1344_daily_bin1407.fits evtable="EVENTS" scfile=/scratch/kocevski/912087/ft2_4FGL_J2146.5-1344_daily_bin1407.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/912087/Model_4FGL_J2146.5-1344_daily_bin1407.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/912087/ft1_filtered_4FGL_J2146.5-1344_daily_bin1407.fits.....................!
real 75.64
user 74.26
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/912087/ft1_filtered_4FGL_J2146.5-1344_daily_bin1407.fits', '/scratch/kocevski/912087/ft2_4FGL_J2146.5-1344_daily_bin1407.fits', expMap='/scratch/kocevski/912087/expmap_604022401_604281601_4FGL_J2146.5-1344_daily_bin1407.fits', expCube='/scratch/kocevski/912087/ltcube_604022401_604281601_4FGL_J2146.5-1344_daily_bin1407.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/912087/Model_4FGL_J2146.5-1344_daily_bin1407.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2146.5-1344'

4FGL J2146.5-1344
   Spectrum: LogParabola
295         norm:  1.885e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  1.495e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
297         beta:  1.382e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  2.840e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/912087/ft1_filtered_4FGL_J2146.5-1344_daily_bin1407.fits
Spacecraft file(s): /scratch/kocevski/912087/ft2_4FGL_J2146.5-1344_daily_bin1407.fits
Exposure map: /scratch/kocevski/912087/expmap_604022401_604281601_4FGL_J2146.5-1344_daily_bin1407.fits
Exposure cube: /scratch/kocevski/912087/ltcube_604022401_604281601_4FGL_J2146.5-1344_daily_bin1407.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/912087/Model_4FGL_J2146.5-1344_daily_bin1407.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) = 8209.48669657

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.9977       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .22393E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.005       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.035       1.0000         .10000E-03   10000.    
     8 'norm      '    3.2968       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.641       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.151       1.0000         .10000E-03   10000.    
    13 'Prefactor '    642.35       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    27.842       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.3964       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.1230       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5540E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8209.476     FROM MIGRAD    STATUS=CONVERGED    335 CALLS     1608 TOTAL
                     EDM=   .73E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.9909        18.480        .32291E-05    .71108E-04
   2  Prefactor     .10001E-03    7.7267       -.94153E-06** at limit **
   3  Prefactor     .10000E-03    42.302        .42250E-07** at limit **
   4  Prefactor     .10000E-03    2.5583        .26707E-07** at limit **
   5  Prefactor     14.006        8.9540        .28329E-07   -.95126E-04
   6  Prefactor     .10000E-03    15.982        .19325E-06** at limit **
   7  Prefactor     13.034        20.455        .23417E-06    .97597E-05
   8  norm          3.2968        1.5903        .64934E-07   -.98477E-03
   9  Prefactor     .10000E-03    1.9599       -.68360E-07** at limit **
  10  Prefactor     15.645        16.988        .19203E-06   -.16938E-05
  11  Prefactor     .10000E-03    5.4065       -.17615E-06** at limit **
  12  Prefactor     23.157        17.533       -.54348E-06    .21584E-04
  13  Prefactor     642.37        185.34        .35148E-05   -.30722E-04
  14  Prefactor     .10000E-03    28.169       -.18332E-06** at limit **
  15  norm          27.843        11.040       -.81732E-06    .87510E-04
  16  Normalizat    1.3959        .24539        .13224E-06    .89741E-04
  17  Prefactor     1.1233        .14287       -.23644E-06    .15677E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.99086
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.0063
  Prefactor  = 0.0001
  Prefactor  = 13.034
  norm       = 3.29675
  Prefactor  = 0.0001
  Prefactor  = 15.6446
  Prefactor  = 0.0001
  Prefactor  = 23.1573
  Prefactor  = 642.365
  Prefactor  = 0.0001
  norm       = 27.8433
  Normalizat = 1.39594
  Prefactor  = 1.12332
 **********
 **   18 **HESSE 
 **********

 FCN=   8209.476     FROM HESSE     STATUS=OK           223 CALLS     1831 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.9909        18.232        .14178E-03   -1.5143    
   2  Prefactor     .10001E-03    93.075        .45385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    42.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.5923        .14150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.006        9.0014        .53514E-03   -1.4959    
   6  Prefactor     .10000E-03    15.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.034        20.594        .11094E-03   -1.4986    
   8  norm          3.2968        4.8075        .11149E-02   -1.5345    
   9  Prefactor     .10000E-03    1.9673        .12385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.645        16.967        .10127E-03   -1.4917    
  11  Prefactor     .10000E-03    5.4460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     23.157        17.628        .83250E-04   -1.4745    
  13  Prefactor     642.37        181.80        .81575E-04   -1.0583    
  14  Prefactor     .10000E-03    28.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          27.843        10.944        .75925E-04   -1.4652    
  16  Normalizat    1.3959        .29196        .33598E-03   -.80746    
  17  Prefactor     1.1233        .16983        .22444E-03   -.88725    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.51866e-10
Minuit parameter uncertainties:
  1  18.2451
  2  0.00209025
  3  1.03312e-06
  4  1.92973e-06
  5  9.00232
  6  4.4472e-06
  7  20.6053
  8  4.80811
  9  9.1986e-07
  10  16.9719
  11  3.55853e-06
  12  17.6316
  13  181.967
  14  5.52527e-06
  15  10.9448
  16  0.292306
  17  0.169911
Done.

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

Extracting fit parameters...

4FGL J2146.5-1344
   Spectrum: LogParabola
295         norm:  3.297e+00  4.808e+00  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  1.495e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
297         beta:  1.382e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  2.840e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
551    Prefactor:  1.123e+00  1.699e-01  0.000e+00  1.000e+01 ( 1.000e+00)
552        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
553        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
550   Normalization:  1.396e+00  2.923e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.72
Ra Dec: 326.645 -13.735
Photon Flux Upper Limit: 3.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 9.05e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/912087/likelihoodResults_604022401_604281601_4FGL_J2146.5-1344_daily_bin1407.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) = 8209.43549683
delta logL = 0.0401891563979

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8209.43393733
delta logL = 0.0417486569604

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0410       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7593       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3953       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1229       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5540E+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=   8209.434     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      243 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0409        4.7580        .21526E-03    .14503E-03
   2  alpha         1.7594        .94163        .24884E-01    .18895E-04
   3  Normalizat    1.3953        .27218        .33604E-03   -.22329E-04
   4  Prefactor     1.1229        .16668        .22446E-03   -.40215E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.04093
  alpha      = 1.75942
  Normalizat = 1.39531
  Prefactor  = 1.12293
 **********
 **   18 **HESSE 
 **********

 FCN=   8209.434     FROM HESSE     STATUS=OK            25 CALLS      268 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0409        4.6081        .86104E-05   -1.5359    
   2  alpha         1.7594        .91401        .99534E-03   -.30074    
   3  Normalizat    1.3953        .27245        .13441E-04   -.80764    
   4  Prefactor     1.1229        .16686        .89785E-05   -.88737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.00968e-11
Minuit parameter uncertainties:
  1  4.60863
  2  0.937948
  3  0.27273
  4  0.166935
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/912087': 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) = 8209.43393733
delta logL = 0.0417486622391

Extracting fit parameters...

4FGL J2146.5-1344
   Spectrum: LogParabola
295         norm:  3.041e+00  4.609e+00  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  1.759e+00  9.379e-01  0.000e+00  5.000e+00 ( 1.000e+00)
297         beta:  1.382e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  2.840e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
551    Prefactor:  1.123e+00  1.669e-01  0.000e+00  1.000e+01 ( 1.000e+00)
552        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
553        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
550   Normalization:  1.395e+00  2.727e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.72
Ra Dec: 326.645 -13.735

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/912087/cmap_HighResolution_604022401_604281601_4FGL_J2146.5-1344_daily_bin1407.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.05e-05', job_status='DONE', photon_flux_upper_limit='3.03e-08', time_completed='2021-09-27 14:14:46.534369', job_id='912087', GAL2='1.12', fit_tolerance='1e-08', EG2='1.40', EG='1.40', time_epoch_completed='1632777286.53', return_code2='0', ts='0.72', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='4.17e-02', ts2='0.80', photon_index_error='0.00', photon_index='1.50' WHERE bin_id='1407' AND source_name='4FGL J2146.5-1344' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 14:14:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 912087: <4FGL_J2146.5-1344_daily_bin1407> in cluster <slac> Done

Job <4FGL_J2146.5-1344_daily_bin1407> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep 27 14:00:49 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 14:01:05 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:01:05 2021
Terminated at Mon Sep 27 14:14:47 2021
Results reported at Mon Sep 27 14:14:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2146.5-1344_daily_bin1407 326.645 -13.7347 604022401 604281601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2146.5-1344 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   633.43 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             300.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            838 sec.

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

