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


Performing analysis on: 4FGL_J2146.5-1344_daily_bin1627
RA = 326.645, Dec = -13.7347
tmin = 661046401, tmax = 661305601
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='250919', job_status='RUN', time_executed='2021-12-16 00:36:36.022239', time_epoch_executed='1639643796.02' WHERE source_name='4FGL J2146.5-1344' and cadence='daily' and bin_id='1627'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250919

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250919/ft1_4FGL_J2146.5-1344_daily_bin1627.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250919/ft2_4FGL_J2146.5-1344_daily_bin1627.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250919/ft1_4FGL_J2146.5-1344_daily_bin1627.fits outfile=/scratch/kocevski/250919/ft1_filteredMKT_4FGL_J2146.5-1344_daily_bin1627.fits ra=326.645 dec=-13.7347 rad=12.0 tmin=661046401.0 tmax=661305601.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.55
user 3.33
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250919/ft1_filtered_4FGL_J2146.5-1344_daily_bin1627.fits" evtable="EVENTS" scfile=/scratch/kocevski/250919/ft2_4FGL_J2146.5-1344_daily_bin1627.fits sctable="SC_DATA" outfile=/scratch/kocevski/250919/ltcube_661046401_661305601_4FGL_J2146.5-1344_daily_bin1627.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/250919/ft2_4FGL_J2146.5-1344_daily_bin1627.fits
.....................!
real 12.15
user 11.76
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250919/ft1_filtered_4FGL_J2146.5-1344_daily_bin1627.fits evtable="EVENTS" scfile=/scratch/kocevski/250919/ft2_4FGL_J2146.5-1344_daily_bin1627.fits sctable="SC_DATA" expcube=/scratch/kocevski/250919/ltcube_661046401_661305601_4FGL_J2146.5-1344_daily_bin1627.fits outfile=/scratch/kocevski/250919/expmap_661046401_661305601_4FGL_J2146.5-1344_daily_bin1627.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/250919/ltcube_661046401_661305601_4FGL_J2146.5-1344_daily_bin1627.fits
.....................!
real 190.20
user 185.56
sys 4.12

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/250919/ft1_filtered_4FGL_J2146.5-1344_daily_bin1627.fits scfile=/scratch/kocevski/250919/ft2_4FGL_J2146.5-1344_daily_bin1627.fits outfile=/scratch/kocevski/250919/cmap_661046401_661305601_4FGL_J2146.5-1344_daily_bin1627.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250919/ft1_filtered_4FGL_J2146.5-1344_daily_bin1627.fits scfile=/scratch/kocevski/250919/ft2_4FGL_J2146.5-1344_daily_bin1627.fits outfile=/scratch/kocevski/250919/cmap_HighResolution_661046401_661305601_4FGL_J2146.5-1344_daily_bin1627.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/250919/ft1_filtered_4FGL_J2146.5-1344_daily_bin1627.fits evtable="EVENTS" scfile=/scratch/kocevski/250919/ft2_4FGL_J2146.5-1344_daily_bin1627.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/250919/Model_4FGL_J2146.5-1344_daily_bin1627.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/250919/ft1_filtered_4FGL_J2146.5-1344_daily_bin1627.fits.....................!
real 56.57
user 55.11
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13913E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.854       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.1923       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.2206       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .25789E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .15865E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.620       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    101.70       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.4381       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.2283       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .76101       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=   5716.850     FROM MIGRAD    STATUS=CONVERGED    334 CALLS     1393 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    40.420       -.91370E-05** at limit **
   2  Prefactor     10.856        14.176        .34195E-07    .72710E-04
   3  Prefactor     .10000E-03    95.781       -.10055E-04** at limit **
   4  Prefactor     3.1926        6.8091       -.74407E-06   -.36091E-03
   5  Prefactor     6.2196        5.8236       -.51235E-06   -.94526E-04
   6  Prefactor     .10000E-03    31.585       -.12493E-05** at limit **
   7  Prefactor     .10000E-03    25.055        .19878E-04** at limit **
   8  norm          .10000E-03    3.4751        .86573E-06** at limit **
   9  Prefactor     .10000E-03    12.007        .92628E-06** at limit **
  10  Prefactor     26.595        23.486       -.36103E-05   -.19584E-03
  11  Prefactor     .10000E-03    4.7950       -.18003E-06** at limit **
  12  Prefactor     101.71        23.024        .12343E-05   -.14702E-03
  13  Prefactor     .10000E-03    46.693        .12989E-04** at limit **
  14  Prefactor     .10000E-03    13.912        .24654E-06** at limit **
  15  norm          6.4382        4.7618        .15671E-07   -.63074E-04
  16  Normalizat    1.2285        .22659        .27697E-06   -.17907E-03
  17  Prefactor     .76096        .12970       -.43051E-06   -.15175E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.8558
  Prefactor  = 0.0001
  Prefactor  = 3.19263
  Prefactor  = 6.21957
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.5948
  Prefactor  = 0.0001
  Prefactor  = 101.71
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.43819
  Normalizat = 1.22848
  Prefactor  = 0.760965
 **********
 **   18 **HESSE 
 **********

 FCN=   5716.850     FROM HESSE     STATUS=OK           215 CALLS     1608 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    41.200        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.856        14.144        .12161E-03   -1.5049    
   3  Prefactor     .10000E-03    96.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.1926        6.8303        .22679E-03   -1.5351    
   5  Prefactor     6.2196        5.8252        .16095E-03   -1.5209    
   6  Prefactor     .10000E-03    31.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    25.247        .21452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.4868        .13766E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.494        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     26.595        23.683        .77645E-04   -1.4676    
  11  Prefactor     .10000E-03    4.8079        .16169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     101.71        23.144        .39868E-04   -1.3688    
  13  Prefactor     .10000E-03    46.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.4382        4.7631        .13755E-03   -1.5200    
  16  Normalizat    1.2285        .27034        .28736E-03   -.85727    
  17  Prefactor     .76096        .15451        .20882E-03   -1.0118    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08511e-10
Minuit parameter uncertainties:
  1  0.000235776
  2  14.1486
  3  7.64432e-05
  4  6.832
  5  5.82576
  6  1.28257e-05
  7  4.4938e-05
  8  1.56315e-06
  9  3.78408e-06
  10  23.6912
  11  8.12946e-07
  12  23.1458
  13  2.79733e-05
  14  1.24252e-06
  15  4.76333
  16  0.270652
  17  0.154593
Done.

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

Extracting fit parameters...

4FGL J2146.5-1344
   Spectrum: LogParabola
295         norm:  1.000e-04  1.563e-06  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:  7.610e-01  1.546e-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.228e+00  2.707e-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.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 8.23e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/250919/likelihoodResults_661046401_661305601_4FGL_J2146.5-1344_daily_bin1627.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) = 5716.85140152
delta logL = -0.00134893855738

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5716.85005255
delta logL = 2.96076905215e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5068       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2284       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76099       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=   5716.799     FROM MIGRAD    STATUS=CONVERGED    147 CALLS      290 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55521E-01    1.1267        .12400E-01    .30384E-02
   2  alpha         3.8067        1.7500        .50000        .37134E-04
   3  Normalizat    1.2104        .20257E-01    .28736E-03    .27140E-04
   4  Prefactor     .76515        .11949E-01    .20882E-03    .32393E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0555213
  alpha      = 3.80668
  Normalizat = 1.21036
  Prefactor  = 0.765147
 **********
 **   18 **HESSE 
 **********

 FCN=   5716.799     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      321 TOTAL
                     EDM=   .61E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55521E-01    26.509        .44500E-03   -1.5661    
   2  alpha         3.8067        3.2930        .20192E-01    6.8332    
   3  Normalizat    1.2104        .15326        .11494E-04   -.86283    
   4  Prefactor     .76515        .91514E-01    .83528E-05   -1.0103    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.05412e-08
Minuit parameter uncertainties:
  1  2.42524
  2  14.8024
  3  0.15332
  4  0.0915318
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250919': 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) = 5716.79886087
delta logL = 0.0511917111535

Extracting fit parameters...

4FGL J2146.5-1344
   Spectrum: LogParabola
295         norm:  5.552e-02  2.425e+00  1.000e-04  1.000e+04 ( 1.000e-13)
296        alpha:  3.807e+00  1.480e+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:  7.651e-01  9.153e-02  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.210e+00  1.533e-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/250919/cmap_HighResolution_661046401_661305601_4FGL_J2146.5-1344_daily_bin1627.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.23e-05', job_status='DONE', photon_flux_upper_limit='2.76e-08', time_completed='2021-12-16 00:45:04.159142', job_id='250919', GAL2='0.77', fit_tolerance='1e-08', EG2='1.21', EG='1.23', time_epoch_completed='1639644304.16', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='5.12e-02', ts2='0.11', photon_index_error='0.00', photon_index='1.50' WHERE bin_id='1627' AND source_name='4FGL J2146.5-1344' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec 16 00:45:04 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0199>
Subject: Job 250919: <4FGL_J2146.5-1344_daily_bin1627> in cluster <slac> Done

Job <4FGL_J2146.5-1344_daily_bin1627> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Thu Dec 16 00:35:38 2021
Job was executed on host(s) <bullet0199>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec 16 00:35:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec 16 00:35:40 2021
Terminated at Thu Dec 16 00:45:04 2021
Results reported at Thu Dec 16 00:45:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2146.5-1344_daily_bin1627 326.645 -13.7347 661046401 661305601 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 :                                   510.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             347.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   564 sec.
    Turnaround time :                            566 sec.

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

