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


Performing analysis on: 4FGL_J2146.5-1344_daily_bin1506
RA = 326.645, Dec = -13.7347
tmin = 629683201, tmax = 629942401
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='912248', job_status='RUN', time_executed='2021-09-27 14:03:21.840596', time_epoch_executed='1632776601.84' WHERE source_name='4FGL J2146.5-1344' and cadence='daily' and bin_id='1506'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/912248

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/912248/ft1_4FGL_J2146.5-1344_daily_bin1506.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/912248/ft2_4FGL_J2146.5-1344_daily_bin1506.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/912248/ft1_4FGL_J2146.5-1344_daily_bin1506.fits outfile=/scratch/kocevski/912248/ft1_filteredMKT_4FGL_J2146.5-1344_daily_bin1506.fits ra=326.645 dec=-13.7347 rad=12.0 tmin=629683201.0 tmax=629942401.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.65
user 3.41
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/912248/ft2_4FGL_J2146.5-1344_daily_bin1506.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/912248/ft1_filteredMKT_4FGL_J2146.5-1344_daily_bin1506.fits evtable="EVENTS" outfile="/scratch/kocevski/912248/ft1_filtered_4FGL_J2146.5-1344_daily_bin1506.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/912248/ft1_filtered_4FGL_J2146.5-1344_daily_bin1506.fits" evtable="EVENTS" scfile=/scratch/kocevski/912248/ft2_4FGL_J2146.5-1344_daily_bin1506.fits sctable="SC_DATA" outfile=/scratch/kocevski/912248/ltcube_629683201_629942401_4FGL_J2146.5-1344_daily_bin1506.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/912248/ft2_4FGL_J2146.5-1344_daily_bin1506.fits
.....................!
real 12.83
user 12.47
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/912248/ft1_filtered_4FGL_J2146.5-1344_daily_bin1506.fits evtable="EVENTS" scfile=/scratch/kocevski/912248/ft2_4FGL_J2146.5-1344_daily_bin1506.fits sctable="SC_DATA" expcube=/scratch/kocevski/912248/ltcube_629683201_629942401_4FGL_J2146.5-1344_daily_bin1506.fits outfile=/scratch/kocevski/912248/expmap_629683201_629942401_4FGL_J2146.5-1344_daily_bin1506.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/912248/ltcube_629683201_629942401_4FGL_J2146.5-1344_daily_bin1506.fits
.....................!
real 192.28
user 187.03
sys 4.77

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/912248/ft1_filtered_4FGL_J2146.5-1344_daily_bin1506.fits scfile=/scratch/kocevski/912248/ft2_4FGL_J2146.5-1344_daily_bin1506.fits outfile=/scratch/kocevski/912248/cmap_629683201_629942401_4FGL_J2146.5-1344_daily_bin1506.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.63
user 0.37
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/912248/ft1_filtered_4FGL_J2146.5-1344_daily_bin1506.fits scfile=/scratch/kocevski/912248/ft2_4FGL_J2146.5-1344_daily_bin1506.fits outfile=/scratch/kocevski/912248/cmap_HighResolution_629683201_629942401_4FGL_J2146.5-1344_daily_bin1506.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/912248/ft1_filtered_4FGL_J2146.5-1344_daily_bin1506.fits evtable="EVENTS" scfile=/scratch/kocevski/912248/ft2_4FGL_J2146.5-1344_daily_bin1506.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/912248/Model_4FGL_J2146.5-1344_daily_bin1506.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/912248/ft1_filtered_4FGL_J2146.5-1344_daily_bin1506.fits.....................!
real 61.00
user 59.62
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    10.525       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.035       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10258E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .28875E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10425E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.1538       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.038       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.261       1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.469       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.8648       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .84947       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .96532       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=   6540.330     FROM MIGRAD    STATUS=CONVERGED    325 CALLS     1396 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.3507       -.27267E-05** at limit **
   2  Prefactor     10.525        8.3271        .75718E-06   -.54110E-04
   3  Prefactor     14.026        49.205       -.16978E-04   -.87206E-04
   4  Prefactor     .10000E-03    3.0256        .94176E-06** at limit **
   5  Prefactor     .10000E-03    1.1843        .31936E-07** at limit **
   6  Prefactor     .10000E-03    88.169        .57534E-04** at limit **
   7  Prefactor     .10000E-03    15.106       -.65460E-05** at limit **
   8  norm          .10006E-03    4.0693        .22468E-05** at limit **
   9  Prefactor     4.1538        5.1174        .14238E-05   -.51422E-03
  10  Prefactor     16.039        17.147        .20175E-05   -.46652E-04
  11  Prefactor     .10000E-03    3.3411        .28910E-05** at limit **
  12  Prefactor     21.258        12.891       -.29417E-05   -.17976E-03
  13  Prefactor     20.587        71.032        .23226E-03    .39618E-04
  14  Prefactor     .10000E-03    86.149       -.44513E-05** at limit **
  15  norm          2.8643        3.0727       -.39739E-05   -.93864E-03
  16  Normalizat    .84946        .18959       -.90813E-05   -.22842E-03
  17  Prefactor     .96530        .11673       -.53336E-06   -.83711E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.525
  Prefactor  = 14.0263
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.000100055
  Prefactor  = 4.15381
  Prefactor  = 16.0387
  Prefactor  = 0.0001
  Prefactor  = 21.2583
  Prefactor  = 20.5874
  Prefactor  = 0.0001
  norm       = 2.86425
  Normalizat = 0.849459
  Prefactor  = 0.965299
 **********
 **   18 **HESSE 
 **********

 FCN=   6540.330     FROM HESSE     STATUS=OK           221 CALLS     1617 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.3520        .14457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.525        8.3281        .12350E-03   -1.5059    
   3  Prefactor     14.026        49.247        .10691E-03   -1.4959    
   4  Prefactor     .10000E-03    6.7363        .27287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.1849        .85948E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    89.469        .21406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10006E-03    15.225        .31754E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.1538        5.1055        .19271E-03   -1.5300    
  10  Prefactor     16.039        17.136        .10001E-03   -1.4907    
  11  Prefactor     .10000E-03    3.3513        .14437E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     21.258        12.960        .86867E-04   -1.4786    
  13  Prefactor     20.587        70.905        .88530E-04   -1.4800    
  14  Prefactor     .10000E-03    88.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.8643        3.0704        .14122E-03   -1.5369    
  16  Normalizat    .84946        .22751        .29812E-03   -.98260    
  17  Prefactor     .96530        .14033        .17850E-03   -.93895    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.15405e-09
Minuit parameter uncertainties:
  1  9.45868e-06
  2  8.32897
  3  49.3898
  4  0.000237081
  5  4.25478e-06
  6  0.000958019
  7  0.000166486
  8  0.00183698
  9  5.10606
  10  17.1412
  11  2.26458e-05
  12  12.9619
  13  71.1977
  14  0.0001059
  15  3.07055
  16  0.227768
  17  0.140378
Done.

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

Extracting fit parameters...

4FGL J2146.5-1344
   Spectrum: LogParabola
295         norm:  1.001e-04  1.837e-03  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:  9.653e-01  1.404e-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:  8.495e-01  2.278e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/912248/likelihoodResults_629683201_629942401_4FGL_J2146.5-1344_daily_bin1506.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): 102
logL (Free Index) = 6540.32998569
delta logL = -0.000310378640279

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6540.32958776
delta logL = 8.75516307133e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .53700E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6184       1.0000          .0000       5.0000    
     3 'Normalizat'    .84929       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96539       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=   6539.896     FROM MIGRAD    STATUS=CONVERGED    119 CALLS      339 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .76915        3.5730        .94971E-04   -.14851E-02
   2  alpha         2.8329        1.7115        .14939E-01   -.69987E-04
   3  Normalizat    .84262        .21897        .29905E-03   -.27980E-03
   4  Prefactor     .96091        .13923        .17873E-03    .77704E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.769154
  alpha      = 2.83288
  Normalizat = 0.842624
  Prefactor  = 0.960913
 **********
 **   18 **HESSE 
 **********

 FCN=   6539.896     FROM HESSE     STATUS=OK            25 CALLS      364 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .76915        2.0415        .37988E-05   -1.5533    
   2  alpha         2.8329        1.1211        .59754E-03    .13355    
   3  Normalizat    .84262        .21775        .11962E-04   -.98507    
   4  Prefactor     .96091        .13874        .35746E-04   -.94044    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.55846e-10
Minuit parameter uncertainties:
  1  2.04166
  2  1.16334
  3  0.217979
  4  0.138796
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/912248': 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) = 6539.89626493
delta logL = 0.433410383046

Extracting fit parameters...

4FGL J2146.5-1344
   Spectrum: LogParabola
295         norm:  7.692e-01  2.042e+00  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  2.833e+00  1.163e+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:  9.609e-01  1.388e-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:  8.426e-01  2.180e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/912248/cmap_HighResolution_629683201_629942401_4FGL_J2146.5-1344_daily_bin1506.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.95e-05', job_status='DONE', photon_flux_upper_limit='2.67e-08', time_completed='2021-09-27 14:13:18.594445', job_id='912248', GAL2='0.96', fit_tolerance='1e-08', EG2='0.84', EG='0.85', time_epoch_completed='1632777198.59', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='4.33e-01', ts2='0.88', photon_index_error='0.00', photon_index='1.50' WHERE bin_id='1506' AND source_name='4FGL J2146.5-1344' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 14:13:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 912248: <4FGL_J2146.5-1344_daily_bin1506> in cluster <slac> Done

Job <4FGL_J2146.5-1344_daily_bin1506> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep 27 14:01:03 2021
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 14:01:48 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:48 2021
Terminated at Mon Sep 27 14:13:19 2021
Results reported at Mon Sep 27 14:13:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2146.5-1344_daily_bin1506 326.645 -13.7347 629683201 629942401 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 :                                   552.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             289.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   690 sec.
    Turnaround time :                            736 sec.

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

