/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 132 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 = 7493
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1728.0+1216_daily_bin239
RA = 262.02, Dec = 12.2756
tmin = 301276801, tmax = 301536001
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='726776', job_status='RUN', time_executed='2021-09-17 11:52:49.077467', time_epoch_executed='1631904769.08' WHERE source_name='4FGL J1728.0+1216' and cadence='daily' and bin_id='239'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/726776

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/726776/ft1_4FGL_J1728.0+1216_daily_bin239.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/726776/ft2_4FGL_J1728.0+1216_daily_bin239.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/726776/ft1_4FGL_J1728.0+1216_daily_bin239.fits outfile=/scratch/kocevski/726776/ft1_filteredMKT_4FGL_J1728.0+1216_daily_bin239.fits ra=262.02 dec=12.2756 rad=12.0 tmin=301276801.0 tmax=301536001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.54
user 4.31
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/726776/ft2_4FGL_J1728.0+1216_daily_bin239.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/726776/ft2_4FGL_J1728.0+1216_daily_bin239.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/726776/ft1_filteredMKT_4FGL_J1728.0+1216_daily_bin239.fits evtable="EVENTS" outfile="/scratch/kocevski/726776/ft1_filtered_4FGL_J1728.0+1216_daily_bin239.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/726776/ft1_filtered_4FGL_J1728.0+1216_daily_bin239.fits" evtable="EVENTS" scfile=/scratch/kocevski/726776/ft2_4FGL_J1728.0+1216_daily_bin239.fits sctable="SC_DATA" outfile=/scratch/kocevski/726776/ltcube_301276801_301536001_4FGL_J1728.0+1216_daily_bin239.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/726776/ft2_4FGL_J1728.0+1216_daily_bin239.fits
.....................!
real 12.14
user 11.79
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/726776/ft1_filtered_4FGL_J1728.0+1216_daily_bin239.fits evtable="EVENTS" scfile=/scratch/kocevski/726776/ft2_4FGL_J1728.0+1216_daily_bin239.fits sctable="SC_DATA" expcube=/scratch/kocevski/726776/ltcube_301276801_301536001_4FGL_J1728.0+1216_daily_bin239.fits outfile=/scratch/kocevski/726776/expmap_301276801_301536001_4FGL_J1728.0+1216_daily_bin239.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/726776/ltcube_301276801_301536001_4FGL_J1728.0+1216_daily_bin239.fits
.....................!
real 190.93
user 186.03
sys 4.59

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
Extended source FHES J1723.5-0501 in ROI with RadialGaussian spatial model.
Added 176 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1728.0+1216 @ 262.02 12.2756

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/726776/ft1_filtered_4FGL_J1728.0+1216_daily_bin239.fits scfile=/scratch/kocevski/726776/ft2_4FGL_J1728.0+1216_daily_bin239.fits outfile=/scratch/kocevski/726776/cmap_301276801_301536001_4FGL_J1728.0+1216_daily_bin239.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=262.02 yref=12.2756 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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/726776/ft1_filtered_4FGL_J1728.0+1216_daily_bin239.fits scfile=/scratch/kocevski/726776/ft2_4FGL_J1728.0+1216_daily_bin239.fits outfile=/scratch/kocevski/726776/cmap_HighResolution_301276801_301536001_4FGL_J1728.0+1216_daily_bin239.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=262.02 yref=12.2756 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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/726776/ft1_filtered_4FGL_J1728.0+1216_daily_bin239.fits evtable="EVENTS" scfile=/scratch/kocevski/726776/ft2_4FGL_J1728.0+1216_daily_bin239.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/726776/Model_4FGL_J1728.0+1216_daily_bin239.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 FHES J1723.5-0501
adding source GAL_V02
Working on...
/scratch/kocevski/726776/ft1_filtered_4FGL_J1728.0+1216_daily_bin239.fits.....................!
real 120.09
user 118.73
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/726776/ft1_filtered_4FGL_J1728.0+1216_daily_bin239.fits', '/scratch/kocevski/726776/ft2_4FGL_J1728.0+1216_daily_bin239.fits', expMap='/scratch/kocevski/726776/expmap_301276801_301536001_4FGL_J1728.0+1216_daily_bin239.fits', expCube='/scratch/kocevski/726776/ltcube_301276801_301536001_4FGL_J1728.0+1216_daily_bin239.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/726776/Model_4FGL_J1728.0+1216_daily_bin239.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1728.0+1216'

4FGL J1728.0+1216
   Spectrum: PowerLaw
270    Prefactor:  1.205e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
271        Index:  2.455e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
272        Scale:  1.003e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/726776/ft1_filtered_4FGL_J1728.0+1216_daily_bin239.fits
Spacecraft file(s): /scratch/kocevski/726776/ft2_4FGL_J1728.0+1216_daily_bin239.fits
Exposure map: /scratch/kocevski/726776/expmap_301276801_301536001_4FGL_J1728.0+1216_daily_bin239.fits
Exposure cube: /scratch/kocevski/726776/ltcube_301276801_301536001_4FGL_J1728.0+1216_daily_bin239.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/726776/Model_4FGL_J1728.0+1216_daily_bin239.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) = 15138.2956498

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.5258       1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.315       1.0000         .10000E-03   10000.    
     3 'Prefactor '    34.912       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.5894       1.0000         .10000E-03   10000.    
     6 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.6299       1.0000         .10000E-03   10000.    
     8 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    43.708       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.392       1.0000         .10000E-03   10000.    
    11 'norm      '    4.8920       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.5084       1.0000         .10000E-03   10000.    
    14 'norm      '    52.953       1.0000         .10000E-03   10000.    
    15 'norm      '    .20173       1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.063       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .83299       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0311       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15138.28     FROM MIGRAD    STATUS=CONVERGED    323 CALLS     1696 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.5255        5.7282        .18010E-06   -.16419E-04
   2  Prefactor     19.312        33.943        .19360E-06   -.28263E-05
   3  Prefactor     34.902        35.651        .57897E-07   -.13482E-04
   4  Prefactor     .10000E-03    2.0473       -.87286E-07** at limit **
   5  Prefactor     3.5898        11.610        .93822E-06   -.10732E-04
   6  norm          .10000E-03    .87974        .16269E-06** at limit **
   7  Prefactor     4.6284        10.505        .18645E-06   -.20726E-04
   8  norm          .10000E-03    3.3673       -.28012E-07** at limit **
   9  Prefactor     43.615        62.936        .37665E-06   -.56083E-04
  10  Prefactor     10.393        3.1044        .25547E-07   -.14115E-03
  11  norm          4.8904        5.9556       -.89463E-07   -.62361E-05
  12  norm          .10000E-03    .81864       -.23802E-08** at limit **
  13  norm          5.5085        6.0833       -.12951E-06   -.34806E-05
  14  norm          52.957        46.385        .98642E-07    .33372E-05
  15  norm          .20150        .49708        .84380E-06   -.94833E-04
  16  Prefactor     18.063        18.193        .65207E-07   -.47078E-05
  17  Normalizat    .83282        .24536       -.91898E-06   -.93135E-04
  18  Prefactor     1.0312        .64222E-01   -.14960E-06   -.29274E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.52552
  Prefactor  = 19.3125
  Prefactor  = 34.9024
  Prefactor  = 0.0001
  Prefactor  = 3.58976
  norm       = 0.0001
  Prefactor  = 4.62843
  norm       = 0.0001
  Prefactor  = 43.6155
  Prefactor  = 10.3929
  norm       = 4.89044
  norm       = 0.0001
  norm       = 5.50855
  norm       = 52.9568
  norm       = 0.201502
  Prefactor  = 18.0627
  Normalizat = 0.832821
  Prefactor  = 1.03119
 **********
 **   18 **HESSE 
 **********

 FCN=   15138.28     FROM HESSE     STATUS=OK           248 CALLS     1944 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.5255        5.7311        .13729E-03   -1.5124    
   2  Prefactor     19.312        34.043        .91133E-04   -1.4829    
   3  Prefactor     34.902        35.644        .67823E-04   -1.4526    
   4  Prefactor     .10000E-03    2.0589        .17181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.5898        11.597        .21329E-03   -1.5329    
   6  norm          .10000E-03    .88956        .11264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.6284        10.479        .18705E-03   -1.5278    
   8  norm          .10000E-03    3.3752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     43.615        62.704        .60640E-04   -1.4386    
  10  Prefactor     10.393        3.0959        .11080E-03   -1.5063    
  11  norm          4.8904        5.9428        .18186E-03   -1.5266    
  12  norm          .10000E-03    .82065        .10871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.5085        6.0750        .17119E-03   -1.5239    
  14  norm          52.957        46.387        .55117E-04   -1.4251    
  15  norm          .20150        .49738        .13369E-03   -1.5618    
  16  Prefactor     18.063        18.194        .94237E-04   -1.4858    
  17  Normalizat    .83282        .26995        .56226E-03   -.98863    
  18  Prefactor     1.0312        .71617E-01    .14208E-03   -.91697    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.88217e-11
Minuit parameter uncertainties:
  1  5.7315
  2  34.0772
  3  35.6658
  4  2.4369e-06
  5  11.6042
  6  8.14717e-07
  7  10.4829
  8  4.11757e-07
  9  62.7989
  10  3.09599
  11  5.94351
  12  4.71751e-07
  13  6.07567
  14  46.4185
  15  0.497389
  16  18.1999
  17  0.270386
  18  0.0716233
Done.

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

Extracting fit parameters...

4FGL J1728.0+1216
   Spectrum: PowerLaw
270    Prefactor:  1.039e+01  3.096e+00  1.000e-04  1.000e+04 ( 1.000e-12)
271        Index:  2.455e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
272        Scale:  1.003e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  1.031e+00  7.162e-02  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
595   Normalization:  8.328e-01  2.704e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 24.08
Ra Dec: 262.020 12.276
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 2.05e-07 +/- 6.11e-08
Energy Flux (Fixed Index): 6.28e-05 +/- 1.87e-05

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) = 15138.0699657
delta logL = 0.209073422562

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15138.0688668
delta logL = 0.21017228265

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15138.07     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      269 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.056        45.366        .28838E-02    .24225E-03
   2  Index         2.2784        2.2794        .14255        .23142E-03
   3  Normalizat    .85758        .15920        .12510        .77998E-04
   4  Prefactor     1.0275        .30014E-01    .41459E-01   -.18634E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.0563
  Index      = 2.27841
  Normalizat = 0.857578
  Prefactor  = 1.0275
 **********
 **   18 **HESSE 
 **********

 FCN=   15138.07     FROM HESSE     STATUS=OK            33 CALLS      302 TOTAL
                     EDM=   .54E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.056        4.3552        .11535E-03   -1.5013    
   2  Index         2.2784        .27513        .53233E-02   -.57558    
   3  Normalizat    .85758        .25294        .55500E-03   -.97967    
   4  Prefactor     1.0275        .70063E-01    .14233E-03   -.91818    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.37052e-12
Minuit parameter uncertainties:
  1  4.35528
  2  0.275328
  3  0.253294
  4  0.0700696
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/726776': 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) = 15138.0688639
delta logL = 0.210175209704

Extracting fit parameters...

4FGL J1728.0+1216
   Spectrum: PowerLaw
270    Prefactor:  1.206e+01  4.355e+00  1.000e-04  1.000e+04 ( 1.000e-12)
271        Index:  2.278e+00  2.753e-01  0.000e+00  1.000e+01 (-1.000e+00)
272        Scale:  1.003e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  1.027e+00  7.007e-02  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
595   Normalization:  8.576e-01  2.533e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 24.45
Ra Dec: 262.020 12.276
Photon Index (Free Index): 2.28 +/- 0.28
Photon Flux (Free Index): 1.80e-07 +/- 6.72e-08
Energy Flux (Free Index): 7.07e-05 +/- 2.67e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/726776/cmap_HighResolution_301276801_301536001_4FGL_J1728.0+1216_daily_bin239.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.05e-07', energy_flux2='7.07e-05', photon_flux_error='6.11e-08', dlogl='2.10e-01', energy_flux='6.28e-05', photon_flux2='1.80e-07', job_status='DONE', time_completed='2021-09-17 12:06:58.482831', photon_index_error2='0.28', photon_index2='2.28', ts='24.08', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='2.67e-05', EG='0.83', time_epoch_completed='1631905618.48', return_code='0', job_id='726776', GAL2='1.03', EG2='0.86', return_code2='0', energy_flux_error='1.87e-05', photon_flux_error2='6.72e-08', ts2='24.45', photon_index='2.45' WHERE bin_id='239' AND source_name='4FGL J1728.0+1216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 12:06:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 726776: <4FGL_J1728.0+1216_daily_bin239> in cluster <slac> Done

Job <4FGL_J1728.0+1216_daily_bin239> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 17 11:50:26 2021
Job was executed on host(s) <bullet0128>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 11:50:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 17 11:50:28 2021
Terminated at Fri Sep 17 12:06:59 2021
Results reported at Fri Sep 17 12:06:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1728.0+1216_daily_bin239 262.02 12.2756 301276801 301536001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1728.0+1216 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   841.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             308.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   990 sec.
    Turnaround time :                            993 sec.

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

