aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 17 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J1728.0+1216_daily_bin1711
RA = 262.02, Dec = 12.2756
tmin = 682819201, tmax = 683078401
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='178714', job_status='RUN', time_executed='2022-09-16 20:06:36.066288', time_epoch_executed='1663383996.07' WHERE source_name='4FGL J1728.0+1216' and cadence='daily' and bin_id='1711'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/178714

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/178714/ft1_4FGL_J1728.0+1216_daily_bin1711.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/178714/ft2_4FGL_J1728.0+1216_daily_bin1711.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/178714/ft1_4FGL_J1728.0+1216_daily_bin1711.fits outfile=/scratch/kocevski/178714/ft1_filteredMKT_4FGL_J1728.0+1216_daily_bin1711.fits ra=262.02 dec=12.2756 rad=12.0 tmin=682819201.0 tmax=683078401.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.60
user 4.33
sys 0.24

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

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

Number of photons that the gtmktime cut: 1139

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/178714/ft1_filtered_4FGL_J1728.0+1216_daily_bin1711.fits" evtable="EVENTS" scfile=/scratch/kocevski/178714/ft2_4FGL_J1728.0+1216_daily_bin1711.fits sctable="SC_DATA" outfile=/scratch/kocevski/178714/ltcube_682819201_683078401_4FGL_J1728.0+1216_daily_bin1711.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/178714/ft2_4FGL_J1728.0+1216_daily_bin1711.fits
.....................!
real 14.53
user 14.11
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/178714/ft1_filtered_4FGL_J1728.0+1216_daily_bin1711.fits evtable="EVENTS" scfile=/scratch/kocevski/178714/ft2_4FGL_J1728.0+1216_daily_bin1711.fits sctable="SC_DATA" expcube=/scratch/kocevski/178714/ltcube_682819201_683078401_4FGL_J1728.0+1216_daily_bin1711.fits outfile=/scratch/kocevski/178714/expmap_682819201_683078401_4FGL_J1728.0+1216_daily_bin1711.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/178714/ltcube_682819201_683078401_4FGL_J1728.0+1216_daily_bin1711.fits
.....................!
real 191.86
user 185.51
sys 5.81

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/178714/ft1_filtered_4FGL_J1728.0+1216_daily_bin1711.fits scfile=/scratch/kocevski/178714/ft2_4FGL_J1728.0+1216_daily_bin1711.fits outfile=/scratch/kocevski/178714/cmap_682819201_683078401_4FGL_J1728.0+1216_daily_bin1711.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/178714/ft1_filtered_4FGL_J1728.0+1216_daily_bin1711.fits scfile=/scratch/kocevski/178714/ft2_4FGL_J1728.0+1216_daily_bin1711.fits outfile=/scratch/kocevski/178714/cmap_HighResolution_682819201_683078401_4FGL_J1728.0+1216_daily_bin1711.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.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/178714/ft1_filtered_4FGL_J1728.0+1216_daily_bin1711.fits', '/scratch/kocevski/178714/ft2_4FGL_J1728.0+1216_daily_bin1711.fits', expMap='/scratch/kocevski/178714/expmap_682819201_683078401_4FGL_J1728.0+1216_daily_bin1711.fits', expCube='/scratch/kocevski/178714/ltcube_682819201_683078401_4FGL_J1728.0+1216_daily_bin1711.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/178714/Model_4FGL_J1728.0+1216_daily_bin1711.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  0.000e+00  1.000e+06 ( 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/178714/ft1_filtered_4FGL_J1728.0+1216_daily_bin1711.fits
Spacecraft file(s): /scratch/kocevski/178714/ft2_4FGL_J1728.0+1216_daily_bin1711.fits
Exposure map: /scratch/kocevski/178714/expmap_682819201_683078401_4FGL_J1728.0+1216_daily_bin1711.fits
Exposure cube: /scratch/kocevski/178714/ltcube_682819201_683078401_4FGL_J1728.0+1216_daily_bin1711.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/178714/Model_4FGL_J1728.0+1216_daily_bin1711.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) = 11957.0795532

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5339       1.0000          .0000       .10000E+07
     2 'Prefactor '    .11652E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .14556E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    .13139E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    .54199E-05   1.0000          .0000       .10000E+07
     6 'norm      '    2.5510       1.0000          .0000       .10000E+07
     7 'Prefactor '    1.2862       1.0000          .0000       .10000E+07
     8 'norm      '    12.962       1.0000          .0000       .10000E+07
     9 'Prefactor '    159.91       1.0000          .0000       .10000E+07
    10 'Prefactor '    .37192E-08   1.0000          .0000       .10000E+07
    11 'norm      '    6.0442       1.0000          .0000       .10000E+07
    12 'norm      '    .74940E-08   1.0000          .0000       .10000E+07
    13 'norm      '    .29394       1.0000          .0000       .10000E+07
    14 'norm      '    6.5493       1.0000          .0000       .10000E+07
    15 'Prefactor '    .10479E-01   1.0000          .0000       .10000E+07
    16 'Normalizat'    1.4194       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0099       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11957.05     FROM MIGRAD    STATUS=CONVERGED    151 CALLS     1243 TOTAL
                     EDM=   .55E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4917        8.5177        .23822E-06    .20583E-03
   2  Prefactor     .55511E-10    16.888        .32666E-06** at limit **
   3  Prefactor     .88818E-09    31.167       -.48677E-05** at limit **
   4  Prefactor      .0000        2.6052        .30054E-06** at limit **
   5  Prefactor     .55511E-10    6.7638        .17897E-05** at limit **
   6  norm          2.5517        2.7697       -.17529E-06    .43882E-03
   7  Prefactor     1.3044        5.5284       -.89519E-06    .66328E-03
   8  norm          12.925        9.5232        .40608E-06   -.51818E-03
   9  Prefactor     161.86        92.303        .70879E-06   -.48328E-04
  10  Prefactor     .55511E-10    1.2789        .10172E-05** at limit **
  11  norm          5.9803        11.303        .78338E-06   -.19509E-03
  12  norm           .0000        1.2440       -.20821E-07** at limit **
  13  norm           .0000        114.36       -.16165E-05** at limit **
  14  norm          6.5487        1.3199       -.46763E-07    .27917E-02
  15  Prefactor     .38858E-09    46.550       -.30256E-05** at limit **
  16  Normalizat    1.4189        .31275        .25226E-04    .34373E-04
  17  Prefactor     1.0099        .87607E-01   -.11596E-04    .18896E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.49172
  Prefactor  = 5.55112e-11
  Prefactor  = 8.88178e-10
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  norm       = 2.55169
  Prefactor  = 1.30438
  norm       = 12.9246
  Prefactor  = 161.863
  Prefactor  = 5.55112e-11
  norm       = 5.98028
  norm       = 0
  norm       = 0
  norm       = 6.54866
  Prefactor  = 3.88578e-10
  Normalizat = 1.41889
  Prefactor  = 1.00995
 **********
 **   18 **HESSE 
 **********

 FCN=   11957.05     FROM HESSE     STATUS=OK           255 CALLS     1498 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4917        8.4949        .39237E-03   -1.5657    
   2  Prefactor     .55511E-10    16.900        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .88818E-09    31.168        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        2.6016        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .55511E-10    6.7607        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.5517        2.7786        .63901E-03   -1.5676    
   7  Prefactor     1.3044        5.6441        .97706E-03   -1.5685    
   8  norm          12.925        9.5297        .27796E-03   -1.5636    
   9  Prefactor     161.86        92.318        .79085E-04   -1.5454    
  10  Prefactor     .55511E-10    1.2733        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.9803        11.341        .40816E-03   -1.5659    
  12  norm           .0000        1.2430        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        113.67        .10298E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.5487        1.3184        .39190E-03   -1.5657    
  15  Prefactor     .38858E-09    46.549        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.4189        .27090        .11090       -.80084    
  17  Prefactor     1.0099        .75260E-01    .43338E-01   -.92399    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72658e-08
Minuit parameter uncertainties:
  1  8.49495
  2  4.51787e-05
  3  0.000327839
  4  4.99334e-06
  5  4.20196e-05
  6  2.77862
  7  5.42665
  8  9.52971
  9  92.3188
  10  1.25961e-05
  11  11.341
  12  2.03024e-06
  13  8.46549e-05
  14  1.31843
  15  0.000268748
  16  0.271173
  17  0.0752675
Done.

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

Extracting fit parameters...

4FGL J1728.0+1216
   Spectrum: PowerLaw
270    Prefactor:  5.551e-11  1.260e-05  0.000e+00  1.000e+06 ( 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.010e+00  7.527e-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:  1.419e+00  2.712e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 262.020 12.276
Photon Flux Upper Limit: 9.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/178714/likelihoodResults_682819201_683078401_4FGL_J1728.0+1216_daily_bin1711.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11957.0558342
delta logL = -0.000858679888552

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11957.0549781
delta logL = -2.5262197596e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .32585E-07   1.0000          .0000       .10000E+07
     2 'Index     '    1.9753       1.0000          .0000       10.000    
     3 'Normalizat'    1.4186       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0101       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   11957.05     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      271 TOTAL
                     EDM=   .53E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.3264        .42118E-03** at limit **
   2  Index         1.6259        .94622        .16551E-06     .0000    
   3  Normalizat    1.4189        1.0594       -.45770E-05    .59815E-05
   4  Prefactor     1.0099        1.2646        .60769E-06    .26459E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.62588
  Normalizat = 1.41889
  Prefactor  = 1.00995
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   11957.05     FROM HESSE     STATUS=FAILED         9 CALLS      280 TOTAL
                     EDM=   .53E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.3264        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .25393        1.4848        .16551E-06   -.74073    
   3  Normalizat    1.4189        1.0594       -.45770E-05   -.80084    
   4  Prefactor     1.0099        1.2646        .60769E-06   -.92399    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.34983e-13
Minuit parameter uncertainties:
  1  2.0442e-06
  2  0.956908
  3  1.07655
  4  1.30505
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/178714': 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): 101
logL (Free Index) = 11957.0549756
delta logL = 2.72848410532e-11

Extracting fit parameters...

4FGL J1728.0+1216
   Spectrum: PowerLaw
270    Prefactor:  0.000e+00  2.044e-06  0.000e+00  1.000e+06 ( 1.000e-12)
271        Index:  1.626e+00  9.569e-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.010e+00  1.305e+00  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:  1.419e+00  1.077e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 262.020 12.276

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/178714/cmap_HighResolution_682819201_683078401_4FGL_J1728.0+1216_daily_bin1711.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.29e-03', job_status='DONE', photon_flux_upper_limit='9.41e-08', time_completed='2022-09-16 20:18:51.290030', job_id='178714', GAL2='1.01', fit_tolerance='1e-08', EG2='1.42', EG='1.42', time_epoch_completed='1663384731.29', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='2.73e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1711' AND source_name='4FGL J1728.0+1216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 20:18:51 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0173>
Subject: Job 178714: <4FGL_J1728.0+1216_daily_bin1711> in cluster <slac> Done

Job <4FGL_J1728.0+1216_daily_bin1711> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 16 20:05:26 2022
Job was executed on host(s) <bullet0173>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 20:06:09 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 20:06:09 2022
Terminated at Fri Sep 16 20:18:52 2022
Results reported at Fri Sep 16 20:18:52 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1728.0+1216_daily_bin1711 262.02 12.2756 682819201 683078401 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 :                                   736.46 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             385.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            806 sec.

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

