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


Performing analysis on: 4FGL_J1728.0+1216_daily_bin1021
RA = 262.02, Dec = 12.2756
tmin = 503971201, tmax = 504230401
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='731271', job_status='RUN', time_executed='2021-09-17 12:06:13.004390', time_epoch_executed='1631905573.0' WHERE source_name='4FGL J1728.0+1216' and cadence='daily' and bin_id='1021'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/731271

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/731271/ft1_4FGL_J1728.0+1216_daily_bin1021.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/731271/ft2_4FGL_J1728.0+1216_daily_bin1021.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/731271/ft1_4FGL_J1728.0+1216_daily_bin1021.fits outfile=/scratch/kocevski/731271/ft1_filteredMKT_4FGL_J1728.0+1216_daily_bin1021.fits ra=262.02 dec=12.2756 rad=12.0 tmin=503971201.0 tmax=504230401.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.04
user 3.80
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/731271/ft1_filtered_4FGL_J1728.0+1216_daily_bin1021.fits evtable="EVENTS" scfile=/scratch/kocevski/731271/ft2_4FGL_J1728.0+1216_daily_bin1021.fits sctable="SC_DATA" expcube=/scratch/kocevski/731271/ltcube_503971201_504230401_4FGL_J1728.0+1216_daily_bin1021.fits outfile=/scratch/kocevski/731271/expmap_503971201_504230401_4FGL_J1728.0+1216_daily_bin1021.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/731271/ltcube_503971201_504230401_4FGL_J1728.0+1216_daily_bin1021.fits
.....................!
real 190.74
user 185.06
sys 5.31

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/731271/ft1_filtered_4FGL_J1728.0+1216_daily_bin1021.fits scfile=/scratch/kocevski/731271/ft2_4FGL_J1728.0+1216_daily_bin1021.fits outfile=/scratch/kocevski/731271/cmap_503971201_504230401_4FGL_J1728.0+1216_daily_bin1021.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/731271/ft1_filtered_4FGL_J1728.0+1216_daily_bin1021.fits scfile=/scratch/kocevski/731271/ft2_4FGL_J1728.0+1216_daily_bin1021.fits outfile=/scratch/kocevski/731271/cmap_HighResolution_503971201_504230401_4FGL_J1728.0+1216_daily_bin1021.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/731271/ft1_filtered_4FGL_J1728.0+1216_daily_bin1021.fits evtable="EVENTS" scfile=/scratch/kocevski/731271/ft2_4FGL_J1728.0+1216_daily_bin1021.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/731271/Model_4FGL_J1728.0+1216_daily_bin1021.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/731271/ft1_filtered_4FGL_J1728.0+1216_daily_bin1021.fits.....................!
real 105.31
user 103.81
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/731271/ft1_filtered_4FGL_J1728.0+1216_daily_bin1021.fits', '/scratch/kocevski/731271/ft2_4FGL_J1728.0+1216_daily_bin1021.fits', expMap='/scratch/kocevski/731271/expmap_503971201_504230401_4FGL_J1728.0+1216_daily_bin1021.fits', expCube='/scratch/kocevski/731271/ltcube_503971201_504230401_4FGL_J1728.0+1216_daily_bin1021.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/731271/Model_4FGL_J1728.0+1216_daily_bin1021.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/731271/ft1_filtered_4FGL_J1728.0+1216_daily_bin1021.fits
Spacecraft file(s): /scratch/kocevski/731271/ft2_4FGL_J1728.0+1216_daily_bin1021.fits
Exposure map: /scratch/kocevski/731271/expmap_503971201_504230401_4FGL_J1728.0+1216_daily_bin1021.fits
Exposure cube: /scratch/kocevski/731271/ltcube_503971201_504230401_4FGL_J1728.0+1216_daily_bin1021.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/731271/Model_4FGL_J1728.0+1216_daily_bin1021.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) = 12499.7836917

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6202       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.0799       1.0000         .10000E-03   10000.    
     3 'Prefactor '    37.559       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.5996       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.1291       1.0000         .10000E-03   10000.    
     6 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.994       1.0000         .10000E-03   10000.    
     8 'norm      '    8.2344       1.0000         .10000E-03   10000.    
     9 'Prefactor '    83.460       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.8699       1.0000         .10000E-03   10000.    
    11 'norm      '    10.385       1.0000         .10000E-03   10000.    
    12 'norm      '    .35334E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    13.386       1.0000         .10000E-03   10000.    
    15 'norm      '    .41418       1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.918       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .89850       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0794       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=   12499.78     FROM MIGRAD    STATUS=CONVERGED    407 CALLS     1818 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6181        3.6892       -.82837E-06   -.21913E-02
   2  Prefactor     9.1113        27.847       -.37934E-06   -.39762E-04
   3  Prefactor     37.588        69.956       -.26730E-04   -.28577E-04
   4  Prefactor     2.5976        6.8511        .20630E-05   -.10823E-02
   5  Prefactor     6.1353        14.624        .14128E-06   -.19916E-05
   6  norm          .10000E-03    1.2062        .73989E-07** at limit **
   7  Prefactor     12.984        14.470        .48877E-07   -.10946E-03
   8  norm          8.2412        12.956        .72719E-07   -.92403E-05
   9  Prefactor     83.272        83.435       -.94258E-06   -.36212E-05
  10  Prefactor     2.8700        4.1535       -.10271E-06   -.19781E-03
  11  norm          10.382        9.7162       -.15660E-06   -.19557E-03
  12  norm          .42608E-01    1.5315       -.99483E-08   -.17254E-03
  13  norm          .10000E-03    3.4825        .33022E-07** at limit **
  14  norm          13.025        135.96       -.92321E-05   -.23821E-05
  15  norm          .41410        .40170       -.21388E-07   -.60179E-04
  16  Prefactor     23.923        27.218        .45274E-06    .35108E-07
  17  Normalizat    .89859        .28317        .25199E-05   -.24242E-05
  18  Prefactor     1.0794        .74050E-01    .91198E-08   -.94479E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.6181
  Prefactor  = 9.11128
  Prefactor  = 37.5884
  Prefactor  = 2.59761
  Prefactor  = 6.13531
  norm       = 0.0001
  Prefactor  = 12.984
  norm       = 8.24124
  Prefactor  = 83.2721
  Prefactor  = 2.87002
  norm       = 10.3822
  norm       = 0.0426081
  norm       = 0.0001
  norm       = 13.0247
  norm       = 0.4141
  Prefactor  = 23.9231
  Normalizat = 0.89859
  Prefactor  = 1.07942
 **********
 **   18 **HESSE 
 **********

 FCN=   12499.78     FROM HESSE     STATUS=OK           264 CALLS     2082 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6181        4.9110        .12598E-02   -1.5384    
   2  Prefactor     9.1113        27.954        .66504E-03   -1.5104    
   3  Prefactor     37.588        70.718        .65397E-04   -1.4481    
   4  Prefactor     2.5976        8.8992        .12652E-02   -1.5386    
   5  Prefactor     6.1353        14.622        .16217E-03   -1.5213    
   6  norm          .10000E-03    1.2252        .11986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.984        14.411        .55560E-03   -1.4987    
   8  norm          8.2412        12.804        .13971E-03   -1.5134    
   9  Prefactor     83.272        83.284        .43969E-04   -1.3880    
  10  Prefactor     2.8700        4.0781        .21513E-03   -1.5369    
  11  norm          10.382        9.7424        .62168E-03   -1.5063    
  12  norm          .42608E-01    1.5079        .52339E-01   -1.5667    
  13  norm          .10000E-03    3.4887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          13.025        136.21        .10948E-03   -1.4986    
  15  norm          .41410        .41374        .67696E-03   -1.5579    
  16  Prefactor     23.923        27.233        .81906E-04   -1.4729    
  17  Normalizat    .89859        .31610        .57890E-03   -.96510    
  18  Prefactor     1.0794        .82499E-01    .14604E-03   -.90127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.81932e-09
Minuit parameter uncertainties:
  1  4.91173
  2  27.9943
  3  70.8765
  4  8.90372
  5  14.6307
  6  1.3519e-06
  7  14.4153
  8  12.808
  9  83.4006
  10  4.07846
  11  9.74387
  12  0.506366
  13  4.92817e-07
  14  84.4886
  15  0.413739
  16  27.2466
  17  0.316751
  18  0.0825087
Done.

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

Extracting fit parameters...

4FGL J1728.0+1216
   Spectrum: PowerLaw
270    Prefactor:  2.870e+00  4.078e+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.079e+00  8.251e-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.986e-01  3.168e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.79
Ra Dec: 262.020 12.276
Photon Flux Upper Limit: 1.93e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.49e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/731271/likelihoodResults_503971201_504230401_4FGL_J1728.0+1216_daily_bin1021.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) = 12498.9613204
delta logL = 0.820423466594

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12498.9313848
delta logL = 0.850359148784

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .42956E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    5.1080       1.0000          .0000       10.000    
     3 'Normalizat'    .79925       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0989       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=   12498.93     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      310 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .40407E-01    .33525        .34549E-02    .32357E-02
   2  Index         5.1370        2.0880        .11436        .20332E-03
   3  Normalizat    .79984        .57940E-01    .13742        .17424E-03
   4  Prefactor     1.0989        .15957E-01    .37627E-01    .27991E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.040407
  Index      = 5.13702
  Normalizat = 0.799839
  Prefactor  = 1.09888
 **********
 **   18 **HESSE 
 **********

 FCN=   12498.93     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      345 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .40407E-01    .97460        .15905E-03   -1.5668    
   2  Index         5.1370        4.0179        .59197E-02    .27407E-01
   3  Normalizat    .79984        .21437        .61000E-03   -1.0007    
   4  Prefactor     1.0989        .58361E-01    .14485E-03   -.89502    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.5312e-10
Minuit parameter uncertainties:
  1  0.396407
  2  4.66727
  3  0.214593
  4  0.0583647
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/731271': 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) = 12498.9313724
delta logL = 0.850371532331

Extracting fit parameters...

4FGL J1728.0+1216
   Spectrum: PowerLaw
270    Prefactor:  4.041e-02  3.964e-01  1.000e-04  1.000e+04 ( 1.000e-12)
271        Index:  5.137e+00  4.667e+00  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.099e+00  5.836e-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:  7.998e-01  2.146e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.69
Ra Dec: 262.020 12.276
Photon Index (Free Index): 5.14 +/- 4.67
Photon Flux (Free Index): 1.37e-07 +/- 9.35e-08
Energy Flux (Free Index): 1.80e-05 +/- 1.51e-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/731271/cmap_HighResolution_503971201_504230401_4FGL_J1728.0+1216_daily_bin1021.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.49e-02', comment='SUCCESS', energy_flux2='1.80e-05', dlogl='8.50e-01', photon_flux2='1.37e-07', job_status='DONE', time_completed='2021-09-17 12:20:42.956678', photon_index_error2='4.67', photon_index2='5.14', ts='0.79', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.93e-07', energy_flux_error2='1.51e-05', EG='0.90', time_epoch_completed='1631906442.96', return_code='0', job_id='731271', GAL2='1.10', EG2='0.80', return_code2='102', photon_flux_error2='9.35e-08', ts2='2.69', photon_index='2.45' WHERE bin_id='1021' AND source_name='4FGL J1728.0+1216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 12:20:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 731271: <4FGL_J1728.0+1216_daily_bin1021> in cluster <slac> Done

Job <4FGL_J1728.0+1216_daily_bin1021> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 17 12:05:56 2021
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 12:05:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 17 12:05:57 2021
Terminated at Fri Sep 17 12:20:43 2021
Results reported at Fri Sep 17 12:20:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1728.0+1216_daily_bin1021 262.02 12.2756 503971201 504230401 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 :                                   859.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             311.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   886 sec.
    Turnaround time :                            887 sec.

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

