/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 79 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.4-1528_daily_bin1644
RA = 326.621, Dec = -15.4757
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='574796', job_status='RUN', time_executed='2022-02-05 00:54:01.885299', time_epoch_executed='1644051241.89' WHERE source_name='4FGL J2146.4-1528' and cadence='daily' and bin_id='1644'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/574796

Creating custom pfile directory:
/scratch/kocevski/574796/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/574796/ft1_4FGL_J2146.4-1528_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/574796/ft2_4FGL_J2146.4-1528_daily_bin1644.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/574796/ft1_4FGL_J2146.4-1528_daily_bin1644.fits outfile=/scratch/kocevski/574796/ft1_filteredMKT_4FGL_J2146.4-1528_daily_bin1644.fits ra=326.621 dec=-15.4757 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.71
user 3.47
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/574796/ft2_4FGL_J2146.4-1528_daily_bin1644.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/574796/ft2_4FGL_J2146.4-1528_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/574796/ft1_filteredMKT_4FGL_J2146.4-1528_daily_bin1644.fits evtable="EVENTS" outfile="/scratch/kocevski/574796/ft1_filtered_4FGL_J2146.4-1528_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.67
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/574796/ft1_filtered_4FGL_J2146.4-1528_daily_bin1644.fits" evtable="EVENTS" scfile=/scratch/kocevski/574796/ft2_4FGL_J2146.4-1528_daily_bin1644.fits sctable="SC_DATA" outfile=/scratch/kocevski/574796/ltcube_665452801_665712001_4FGL_J2146.4-1528_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/574796/ft2_4FGL_J2146.4-1528_daily_bin1644.fits
.....................!
real 13.25
user 12.07
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/574796/ft1_filtered_4FGL_J2146.4-1528_daily_bin1644.fits evtable="EVENTS" scfile=/scratch/kocevski/574796/ft2_4FGL_J2146.4-1528_daily_bin1644.fits sctable="SC_DATA" expcube=/scratch/kocevski/574796/ltcube_665452801_665712001_4FGL_J2146.4-1528_daily_bin1644.fits outfile=/scratch/kocevski/574796/expmap_665452801_665712001_4FGL_J2146.4-1528_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/574796/ltcube_665452801_665712001_4FGL_J2146.4-1528_daily_bin1644.fits
.....................!
real 192.45
user 186.50
sys 4.89

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 165 point sources and 0 extended sources

Setting source of interest to:
4FGL J2146.4-1528 @ 326.621 -15.4757

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/574796/ft1_filtered_4FGL_J2146.4-1528_daily_bin1644.fits scfile=/scratch/kocevski/574796/ft2_4FGL_J2146.4-1528_daily_bin1644.fits outfile=/scratch/kocevski/574796/cmap_665452801_665712001_4FGL_J2146.4-1528_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.621 yref=-15.4757 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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/574796/ft1_filtered_4FGL_J2146.4-1528_daily_bin1644.fits scfile=/scratch/kocevski/574796/ft2_4FGL_J2146.4-1528_daily_bin1644.fits outfile=/scratch/kocevski/574796/cmap_HighResolution_665452801_665712001_4FGL_J2146.4-1528_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.621 yref=-15.4757 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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/574796/ft1_filtered_4FGL_J2146.4-1528_daily_bin1644.fits evtable="EVENTS" scfile=/scratch/kocevski/574796/ft2_4FGL_J2146.4-1528_daily_bin1644.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/574796/Model_4FGL_J2146.4-1528_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/574796/ft1_filtered_4FGL_J2146.4-1528_daily_bin1644.fits.....................!
real 62.96
user 61.63
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/574796/ft1_filtered_4FGL_J2146.4-1528_daily_bin1644.fits', '/scratch/kocevski/574796/ft2_4FGL_J2146.4-1528_daily_bin1644.fits', expMap='/scratch/kocevski/574796/expmap_665452801_665712001_4FGL_J2146.4-1528_daily_bin1644.fits', expCube='/scratch/kocevski/574796/ltcube_665452801_665712001_4FGL_J2146.4-1528_daily_bin1644.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/574796/Model_4FGL_J2146.4-1528_daily_bin1644.xml', optimizer='MINUIT')

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

4FGL J2146.4-1528
   Spectrum: PowerLaw
286    Prefactor:  4.163e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  2.796e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  4.246e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/574796/ft1_filtered_4FGL_J2146.4-1528_daily_bin1644.fits
Spacecraft file(s): /scratch/kocevski/574796/ft2_4FGL_J2146.4-1528_daily_bin1644.fits
Exposure map: /scratch/kocevski/574796/expmap_665452801_665712001_4FGL_J2146.4-1528_daily_bin1644.fits
Exposure cube: /scratch/kocevski/574796/ltcube_665452801_665712001_4FGL_J2146.4-1528_daily_bin1644.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/574796/Model_4FGL_J2146.4-1528_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) = 6423.34256416

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    69.466       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.386       1.0000         .10000E-03   10000.    
     8 'norm      '    3.2365       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .68925       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.7835       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.2096       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.2546       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5310E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6423.339     FROM MIGRAD    STATUS=CONVERGED    309 CALLS     1546 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     69.451        34.185       -.85366E-06   -.35859E-03
   2  Prefactor     .10000E-03    34.192       -.34365E-05** at limit **
   3  Prefactor     .10000E-03    4.1526       -.10305E-06** at limit **
   4  Prefactor     .10000E-03    11.741        .97626E-06** at limit **
   5  Prefactor     .10000E-03    12.502       -.11506E-06** at limit **
   6  Prefactor     .10000E-03    6.1319        .69989E-07** at limit **
   7  Prefactor     18.381        25.094       -.13205E-05   -.12572E-03
   8  norm          3.2368        4.8510        .60155E-07   -.31049E-04
   9  Prefactor     .69055        7.3851        .34375E-05   -.18094E-03
  10  Prefactor     .10000E-03    14.518       -.10019E-05** at limit **
  11  Prefactor     .10000E-03    3.3812        .55541E-07** at limit **
  12  Prefactor     4.7845        15.411        .79020E-05   -.11434E-03
  13  Prefactor     .10000E-03    18.018        .11157E-05** at limit **
  14  Prefactor     .10000E-03    28.839        .14018E-05** at limit **
  15  Prefactor     .10000E-03    15.201       -.51073E-06** at limit **
  16  Normalizat    1.2095        .26607       -.98369E-06   -.65719E-04
  17  Prefactor     1.2547        .16054       -.48563E-06   -.12473E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 69.451
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.3814
  norm       = 3.23681
  Prefactor  = 0.690546
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 4.78449
  Prefactor  = 0.000100002
  Prefactor  = 0.000100005
  Prefactor  = 0.000100001
  Normalizat = 1.20947
  Prefactor  = 1.25466
 **********
 **   18 **HESSE 
 **********

 FCN=   6423.339     FROM HESSE     STATUS=OK           215 CALLS     1761 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     69.451        34.154        .48161E-04   -1.4039    
   2  Prefactor     .10000E-03    34.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.2798        .31888E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.1418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.381        25.251        .93408E-04   -1.4850    
   8  norm          3.2368        4.8401        .21032E-03   -1.5348    
   9  Prefactor     .69055        7.4779        .41400E-03   -1.5542    
  10  Prefactor     .10000E-03    14.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.3867        .14393E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.7845        15.529        .91977E-03   -1.5270    
  13  Prefactor     .10000E-03    18.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    28.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.2095        .31490        .34020E-03   -.86311    
  17  Prefactor     1.2547        .18977        .21012E-03   -.84665    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01781e-09
Minuit parameter uncertainties:
  1  34.1632
  2  0.00077354
  3  8.8435e-06
  4  0.000190563
  5  4.32838e-05
  6  1.87445e-06
  7  25.2654
  8  4.84073
  9  4.54521
  10  0.000292704
  11  2.40373e-07
  12  15.5417
  13  0.000399813
  14  0.000751194
  15  0.0002024
  16  0.3154
  17  0.189879
Done.

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

Extracting fit parameters...

4FGL J2146.4-1528
   Spectrum: PowerLaw
286    Prefactor:  1.838e+01  2.527e+01  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  2.796e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  4.246e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
528    Prefactor:  1.255e+00  1.899e-01  0.000e+00  1.000e+01 ( 1.000e+00)
529        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
530        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
527   Normalization:  1.209e+00  3.154e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.65
Ra Dec: 326.621 -15.476
Photon Flux Upper Limit: 2.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.74e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/574796/likelihoodResults_665452801_665712001_4FGL_J2146.4-1528_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) = 6422.81543984
delta logL = 0.523863502066

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6422.81335464
delta logL = 0.525948704902

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9136       1.0000         .10000E-03   10000.    
     2 'Index     '    5.4353       1.0000          .0000       10.000    
     3 'Normalizat'    1.1310       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2956       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5310E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6422.813     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      308 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8782        32.722        .75119E-02    .60274E-03
   2  Index         5.4505        7.2940        .20217        .98427E-04
   3  Normalizat    1.1307        .70658E-01    .79102E-01    .16000E-04
   4  Prefactor     1.2958        .44493E-01    .46900E-01   -.17153E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.87818
  Index      = 5.45048
  Normalizat = 1.13072
  Prefactor  = 1.29575
 **********
 **   18 **HESSE 
 **********

 FCN=   6422.813     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      341 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8782        70.084        .91714E-04   -1.5434    
   2  Index         5.4505        7.6614        .85299E-02    .90218E-01
   3  Normalizat    1.1307        .26329        .35016E-03   -.88771    
   4  Prefactor     1.2958        .15814        .20732E-03   -.83433    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.16781e-10
Minuit parameter uncertainties:
  1  22.9745
  2  9.39929
  3  0.263599
  4  0.158194
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/574796': 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): 102
logL (Free Index) = 6422.81334693
delta logL = 0.52595641313

Extracting fit parameters...

4FGL J2146.4-1528
   Spectrum: PowerLaw
286    Prefactor:  1.878e+00  2.297e+01  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  5.450e+00  9.399e+00  0.000e+00  1.000e+01 (-1.000e+00)
288        Scale:  4.246e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
528    Prefactor:  1.296e+00  1.582e-01  0.000e+00  1.000e+01 ( 1.000e+00)
529        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
530        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
527   Normalization:  1.131e+00  2.636e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.84
Ra Dec: 326.621 -15.476
Photon Index (Free Index): 5.45 +/- 9.40
Photon Flux (Free Index): 1.13e-07 +/- 1.27e-07
Energy Flux (Free Index): 1.45e-05 +/- 2.30e-05

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/574796/cmap_HighResolution_665452801_665712001_4FGL_J2146.4-1528_daily_bin1644.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.74e-02', comment='SUCCESS', energy_flux2='1.45e-05', dlogl='5.26e-01', photon_flux2='1.13e-07', job_status='DONE', time_completed='2022-02-05 01:03:06.880984', photon_index_error2='9.40', photon_index2='5.45', ts='0.65', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', photon_flux_upper_limit='2.19e-07', energy_flux_error2='2.30e-05', EG='1.21', time_epoch_completed='1644051786.88', return_code='0', job_id='574796', GAL2='1.30', EG2='1.13', return_code2='102', photon_flux_error2='1.27e-07', ts2='1.84', photon_index='2.80' WHERE bin_id='1644' AND source_name='4FGL J2146.4-1528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Feb  5 01:03:06 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0174>
Subject: Job 574796: <4FGL_J2146.4-1528_daily_bin1644> in cluster <slac> Done

Job <4FGL_J2146.4-1528_daily_bin1644> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Sat Feb  5 00:51:34 2022
Job was executed on host(s) <bullet0174>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Feb  5 00:52:34 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:34 2022
Terminated at Sat Feb  5 01:03:07 2022
Results reported at Sat Feb  5 01:03:07 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2146.4-1528_daily_bin1644 326.621 -15.4757 665452801 665712001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2146.4-1528 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   545.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             298.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   633 sec.
    Turnaround time :                            693 sec.

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

