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


Performing analysis on: 4FGL_J2146.5-1344_daily_bin1644
RA = 326.645, Dec = -13.7347
tmin = 665452801, tmax = 665712001
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='574797', job_status='RUN', time_executed='2022-02-05 00:53:34.119989', time_epoch_executed='1644051214.12' WHERE source_name='4FGL J2146.5-1344' and cadence='daily' and bin_id='1644'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/574797

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/574797/ft1_4FGL_J2146.5-1344_daily_bin1644.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/574797/ft2_4FGL_J2146.5-1344_daily_bin1644.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/574797/ft1_4FGL_J2146.5-1344_daily_bin1644.fits outfile=/scratch/kocevski/574797/ft1_filteredMKT_4FGL_J2146.5-1344_daily_bin1644.fits ra=326.645 dec=-13.7347 rad=12.0 tmin=665452801.0 tmax=665712001.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 3.67
user 3.44
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/574797/ft2_4FGL_J2146.5-1344_daily_bin1644.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/574797/ft1_filteredMKT_4FGL_J2146.5-1344_daily_bin1644.fits evtable="EVENTS" outfile="/scratch/kocevski/574797/ft1_filtered_4FGL_J2146.5-1344_daily_bin1644.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.56
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/574797/ft1_filtered_4FGL_J2146.5-1344_daily_bin1644.fits" evtable="EVENTS" scfile=/scratch/kocevski/574797/ft2_4FGL_J2146.5-1344_daily_bin1644.fits sctable="SC_DATA" outfile=/scratch/kocevski/574797/ltcube_665452801_665712001_4FGL_J2146.5-1344_daily_bin1644.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/574797/ft2_4FGL_J2146.5-1344_daily_bin1644.fits
.....................!
real 12.86
user 12.05
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/574797/ft1_filtered_4FGL_J2146.5-1344_daily_bin1644.fits evtable="EVENTS" scfile=/scratch/kocevski/574797/ft2_4FGL_J2146.5-1344_daily_bin1644.fits sctable="SC_DATA" expcube=/scratch/kocevski/574797/ltcube_665452801_665712001_4FGL_J2146.5-1344_daily_bin1644.fits outfile=/scratch/kocevski/574797/expmap_665452801_665712001_4FGL_J2146.5-1344_daily_bin1644.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/574797/ltcube_665452801_665712001_4FGL_J2146.5-1344_daily_bin1644.fits
.....................!
real 190.69
user 185.45
sys 4.61

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/574797/ft1_filtered_4FGL_J2146.5-1344_daily_bin1644.fits scfile=/scratch/kocevski/574797/ft2_4FGL_J2146.5-1344_daily_bin1644.fits outfile=/scratch/kocevski/574797/cmap_665452801_665712001_4FGL_J2146.5-1344_daily_bin1644.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/574797/ft1_filtered_4FGL_J2146.5-1344_daily_bin1644.fits scfile=/scratch/kocevski/574797/ft2_4FGL_J2146.5-1344_daily_bin1644.fits outfile=/scratch/kocevski/574797/cmap_HighResolution_665452801_665712001_4FGL_J2146.5-1344_daily_bin1644.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/574797/ft1_filtered_4FGL_J2146.5-1344_daily_bin1644.fits evtable="EVENTS" scfile=/scratch/kocevski/574797/ft2_4FGL_J2146.5-1344_daily_bin1644.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/574797/Model_4FGL_J2146.5-1344_daily_bin1644.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/574797/ft1_filtered_4FGL_J2146.5-1344_daily_bin1644.fits....................!
real 64.57
user 63.28
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/574797/ft1_filtered_4FGL_J2146.5-1344_daily_bin1644.fits', '/scratch/kocevski/574797/ft2_4FGL_J2146.5-1344_daily_bin1644.fits', expMap='/scratch/kocevski/574797/expmap_665452801_665712001_4FGL_J2146.5-1344_daily_bin1644.fits', expCube='/scratch/kocevski/574797/ltcube_665452801_665712001_4FGL_J2146.5-1344_daily_bin1644.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/574797/Model_4FGL_J2146.5-1344_daily_bin1644.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/574797/ft1_filtered_4FGL_J2146.5-1344_daily_bin1644.fits
Spacecraft file(s): /scratch/kocevski/574797/ft2_4FGL_J2146.5-1344_daily_bin1644.fits
Exposure map: /scratch/kocevski/574797/expmap_665452801_665712001_4FGL_J2146.5-1344_daily_bin1644.fits
Exposure cube: /scratch/kocevski/574797/ltcube_665452801_665712001_4FGL_J2146.5-1344_daily_bin1644.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/574797/Model_4FGL_J2146.5-1344_daily_bin1644.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) = 6695.71570617

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    72.746       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.691       1.0000         .10000E-03   10000.    
     8 'norm      '    3.0972       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .53808       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.9574       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    18.158       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0231       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.3712       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=   6695.708     FROM MIGRAD    STATUS=CONVERGED    348 CALLS     1620 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     72.764        35.286        .66001E-05    .20641E-06
   2  Prefactor     .10000E-03    35.509        .90613E-06** at limit **
   3  Prefactor     .10000E-03    125.90        .36460E-06** at limit **
   4  Prefactor     .10000E-03    4.1172       -.72702E-07** at limit **
   5  Prefactor     .10000E-03    11.588        .12645E-05** at limit **
   6  Prefactor     .10000E-03    10.090       -.26763E-06** at limit **
   7  Prefactor     20.691        25.670        .69144E-06    .77122E-04
   8  norm          3.0971        4.7865       -.24558E-06   -.13771E-03
   9  Prefactor     .52728        4.1527       -.13688E-05   -.37096E-03
  10  Prefactor     .10000E-03    15.048       -.69957E-05** at limit **
  11  Prefactor     .10000E-03    4.1629        .17823E-07** at limit **
  12  Prefactor     4.9531        15.482        .22573E-05   -.12867E-04
  13  Prefactor     .10000E-03    26.523       -.27282E-05** at limit **
  14  Prefactor     .10000E-03    16.133        .72343E-05** at limit **
  15  norm          18.159        7.3125        .92476E-07    .28549E-05
  16  Normalizat    1.0228        .26979       -.23991E-05    .74058E-04
  17  Prefactor     1.3713        .15726       -.16210E-06    .75932E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 72.7643
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.6908
  norm       = 3.09708
  Prefactor  = 0.527282
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.95305
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.1587
  Normalizat = 1.02285
  Prefactor  = 1.37134
 **********
 **   18 **HESSE 
 **********

 FCN=   6695.708     FROM HESSE     STATUS=OK           221 CALLS     1841 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     72.764        35.028        .47071E-04   -1.4000    
   2  Prefactor     .10000E-03    35.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    126.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.2394        .32426E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     20.691        25.776        .88053E-04   -1.4798    
   8  norm          3.0971        4.7785        .21688E-03   -1.5356    
   9  Prefactor     .52728        9.8181        .32129E-02   -1.5563    
  10  Prefactor     .10000E-03    15.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.1704        .16305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.9531        15.518        .18063E-03   -1.5263    
  13  Prefactor     .10000E-03    26.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          18.159        7.3150        .93991E-04   -1.4855    
  16  Normalizat    1.0228        .32081        .37699E-03   -.92269    
  17  Prefactor     1.3713        .18849        .20530E-03   -.81210    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.71639e-10
Minuit parameter uncertainties:
  1  35.0379
  2  0.000649018
  3  3.81747e-05
  4  1.68692e-05
  5  2.96028e-05
  6  1.00893e-06
  7  25.7895
  8  4.7791
  9  4.55099
  10  1.6145e-05
  11  3.64481e-06
  12  15.5308
  13  3.19803e-06
  14  2.29448e-06
  15  7.31538
  16  0.321417
  17  0.188582
Done.

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

Extracting fit parameters...

4FGL J2146.5-1344
   Spectrum: LogParabola
295         norm:  3.097e+00  4.779e+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.371e+00  1.886e-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.023e+00  3.214e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.78
Ra Dec: 326.645 -13.735
Photon Flux Upper Limit: 3.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.01e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/574797/likelihoodResults_665452801_665712001_4FGL_J2146.5-1344_daily_bin1644.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) = 6695.69995448
delta logL = 0.00771913255539

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6695.69993361
delta logL = 0.00774000334332

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0933       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6254       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0228       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3710       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.

 FCN=   6695.700     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      198 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0474        4.9221        .57646E-02    .34853E-03
   2  alpha         1.6290        1.0797        .44900E-01    .60772E-04
   3  Normalizat    1.0227        .25126        .85150E-01    .20891E-04
   4  Prefactor     1.3710        .15629        .46447E-01   -.65085E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.04736
  alpha      = 1.62897
  Normalizat = 1.02271
  Prefactor  = 1.37105
 **********
 **   18 **HESSE 
 **********

 FCN=   6695.700     FROM HESSE     STATUS=OK            29 CALLS      227 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0474        4.7327        .21312E-03   -1.5359    
   2  alpha         1.6290        1.0451        .17960E-02   -.35588    
   3  Normalizat    1.0227        .29746        .37701E-03   -.92274    
   4  Prefactor     1.3710        .18552        .20531E-03   -.81218    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.51513e-10
Minuit parameter uncertainties:
  1  4.7333
  2  1.08333
  3  0.297943
  4  0.185605
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/574797': 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) = 6695.69988538
delta logL = 0.00778823124347

Extracting fit parameters...

4FGL J2146.5-1344
   Spectrum: LogParabola
295         norm:  3.047e+00  4.733e+00  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  1.629e+00  1.083e+00  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.371e+00  1.856e-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.023e+00  2.979e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/574797/cmap_HighResolution_665452801_665712001_4FGL_J2146.5-1344_daily_bin1644.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-04', job_status='DONE', photon_flux_upper_limit='3.39e-08', time_completed='2022-02-05 01:02:53.764303', job_id='574797', GAL2='1.37', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1644051773.76', return_code2='0', ts='0.78', comment='SUCCESS', return_code='0', GAL='1.37', dlogl='7.79e-03', ts2='0.80', photon_index_error='0.00', photon_index='1.50' WHERE bin_id='1644' AND source_name='4FGL J2146.5-1344' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Feb  5 01:02:53 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 574797: <4FGL_J2146.5-1344_daily_bin1644> in cluster <slac> Done

Job <4FGL_J2146.5-1344_daily_bin1644> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Sat Feb  5 00:51:35 2022
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Feb  5 00:52:36 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Feb  5 00:52:36 2022
Terminated at Sat Feb  5 01:02:54 2022
Results reported at Sat Feb  5 01:02:54 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2146.5-1344_daily_bin1644 326.645 -13.7347 665452801 665712001 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 :                                   560.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             290.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   618 sec.
    Turnaround time :                            679 sec.

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

