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


Performing analysis on: 4FGL_J1728.0+1216_daily_bin1766
RA = 262.02, Dec = 12.2756
tmin = 697075201, tmax = 697334401
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='853911', job_status='RUN', time_executed='2023-02-06 01:07:19.086141', time_epoch_executed='1675674439.09' WHERE source_name='4FGL J1728.0+1216' and cadence='daily' and bin_id='1766'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/853911

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/853911/ft1_4FGL_J1728.0+1216_daily_bin1766.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/853911/ft2_4FGL_J1728.0+1216_daily_bin1766.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/853911/ft1_4FGL_J1728.0+1216_daily_bin1766.fits outfile=/scratch/kocevski/853911/ft1_filteredMKT_4FGL_J1728.0+1216_daily_bin1766.fits ra=262.02 dec=12.2756 rad=12.0 tmin=697075201.0 tmax=697334401.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.75
user 3.49
sys 0.21

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

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

Number of photons that the gtmktime cut: 1100

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/853911/ft1_filtered_4FGL_J1728.0+1216_daily_bin1766.fits evtable="EVENTS" scfile=/scratch/kocevski/853911/ft2_4FGL_J1728.0+1216_daily_bin1766.fits sctable="SC_DATA" expcube=/scratch/kocevski/853911/ltcube_697075201_697334401_4FGL_J1728.0+1216_daily_bin1766.fits outfile=/scratch/kocevski/853911/expmap_697075201_697334401_4FGL_J1728.0+1216_daily_bin1766.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/853911/ltcube_697075201_697334401_4FGL_J1728.0+1216_daily_bin1766.fits
.....................!
real 193.39
user 186.64
sys 5.42

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/853911/ft1_filtered_4FGL_J1728.0+1216_daily_bin1766.fits scfile=/scratch/kocevski/853911/ft2_4FGL_J1728.0+1216_daily_bin1766.fits outfile=/scratch/kocevski/853911/cmap_697075201_697334401_4FGL_J1728.0+1216_daily_bin1766.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.59
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/853911/ft1_filtered_4FGL_J1728.0+1216_daily_bin1766.fits scfile=/scratch/kocevski/853911/ft2_4FGL_J1728.0+1216_daily_bin1766.fits outfile=/scratch/kocevski/853911/cmap_HighResolution_697075201_697334401_4FGL_J1728.0+1216_daily_bin1766.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.58
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.2406       1.0000          .0000       .10000E+07
     2 'Prefactor '    .15340E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .64114       1.0000          .0000       .10000E+07
     4 'Prefactor '    .51083E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .11898E-01   1.0000          .0000       .10000E+07
     6 'norm      '    2.3915       1.0000          .0000       .10000E+07
     7 'Prefactor '    25.872       1.0000          .0000       .10000E+07
     8 'norm      '    .37732E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    71.850       1.0000          .0000       .10000E+07
    10 'Prefactor '    1.3335       1.0000          .0000       .10000E+07
    11 'norm      '    .89370E-03   1.0000          .0000       .10000E+07
    12 'norm      '    .13378E-07   1.0000          .0000       .10000E+07
    13 'norm      '    44.049       1.0000          .0000       .10000E+07
    14 'norm      '    .88955       1.0000          .0000       .10000E+07
    15 'Prefactor '    .14625E-02   1.0000          .0000       .10000E+07
    16 'Normalizat'    .73803       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0269       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=   11370.61     FROM MIGRAD    STATUS=CONVERGED    112 CALLS     1218 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3004        6.1916       -.35675E-06   -.80505E-03
   2  Prefactor     .16653E-09    6.5448        .39671E-06** at limit **
   3  Prefactor     .38422E-04    138.59       -.12074E-04** at limit **
   4  Prefactor      .0000        2.2786       -.45824E-06** at limit **
   5  Prefactor     .28266E-06    24.444       -.49031E-06** at limit **
   6  norm          2.3914        1.8965       -.11792E-06    .16877E-02
   7  Prefactor     25.847        2.4589       -.71498E-07   -.12636    
   8  norm           .0000        3.6062       -.15043E-06** at limit **
   9  Prefactor     71.757        1.7664       -.87451E-07    .95244E-01
  10  Prefactor     1.3330        2.1131        .32477E-06    .73182E-03
  11  norm          .46629E-08    14.388       -.87142E-06** at limit **
  12  norm           .0000        .91579        .18988E-06** at limit **
  13  norm          44.598        11.051        .86355E-06   -.31519    
  14  norm          .88881        .62260       -.19580E-07    .21451E-02
  15  Prefactor     .52625E-07    14.770       -.22534E-05** at limit **
  16  Normalizat    .73828        .26993       -.78485E-06    .35278E-04
  17  Prefactor     1.0269        .78585E-01    .14220E-05    .96420E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.30042
  Prefactor  = 1.66533e-10
  Prefactor  = 3.84225e-05
  Prefactor  = 0
  Prefactor  = 2.82663e-07
  norm       = 2.39143
  Prefactor  = 25.8475
  norm       = 0
  Prefactor  = 71.757
  Prefactor  = 1.33299
  norm       = 4.66294e-09
  norm       = 0
  norm       = 44.5984
  norm       = 0.888808
  Prefactor  = 5.26246e-08
  Normalizat = 0.738285
  Prefactor  = 1.02686
 **********
 **   18 **HESSE 
 **********

 FCN=   11370.61     FROM HESSE     STATUS=OK           253 CALLS     1471 TOTAL
                     EDM=   .60E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.3004        6.1942        .34900E-03   -1.5650    
   2  Prefactor     .16653E-09    6.5544        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .38422E-04    145.82        .65621E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        2.2879        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .28266E-06    24.306        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.3914        1.8985        .66199E-03   -1.5677    
   7  Prefactor     25.847        15.722        .19664E-03   -1.5606    
   8  norm           .0000        3.5949        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     71.757        73.636        .11798E-03   -1.5539    
  10  Prefactor     1.3330        2.1927        .95008E-03   -1.5685    
  11  norm          .46629E-08    14.370        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        .91767        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          44.598        46.655        .15069E-03   -1.5574    
  14  norm          .88881        .62484        .46485E-03   -1.5689    
  15  Prefactor     .52625E-07    14.945        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .73828        .25873        .12285       -1.0240    
  17  Prefactor     1.0269        .73478E-01    .31001E-01   -.91840    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.03576e-06
Minuit parameter uncertainties:
  1  6.19419
  2  7.08153e-05
  3  0.149709
  4  8.76914e-06
  5  0.00524217
  6  1.89851
  7  15.722
  8  1.33759e-05
  9  73.6368
  10  2.19265
  11  0.000518373
  12  2.60204e-06
  13  46.6554
  14  0.624837
  15  0.00177344
  16  0.259159
  17  0.0734853
Done.

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

Extracting fit parameters...

4FGL J1728.0+1216
   Spectrum: PowerLaw
270    Prefactor:  1.333e+00  2.193e+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

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  1.027e+00  7.349e-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.383e-01  2.592e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/853911/likelihoodResults_697075201_697334401_4FGL_J1728.0+1216_daily_bin1766.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) = 11369.7916304
delta logL = 0.817345272731

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11369.7061287
delta logL = 0.902846966294

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .69285       1.0000          .0000       .10000E+07
     2 'Index     '    1.1199       1.0000          .0000       10.000    
     3 'Normalizat'    .76052       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0243       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=   11369.71     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      220 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .69269        .80079        .61291E-03   -.51894E-02
   2  Index         1.1198        .41647        .35303       -.11423E-03
   3  Normalizat    .76052        .24734        .12120        .61118E-04
   4  Prefactor     1.0243        .72739E-01    .31031E-01   -.15188E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.692691
  Index      = 1.11976
  Normalizat = 0.760524
  Prefactor  = 1.02426
 **********
 **   18 **HESSE 
 **********

 FCN=   11369.71     FROM HESSE     STATUS=OK            33 CALLS      253 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .69269        1.1397        .99176E-05   -1.5691    
   2  Index         1.1198        .67476        .13652E-01   -.88837    
   3  Normalizat    .76052        .26503        .53759E-03   -1.0155    
   4  Prefactor     1.0243        .78291E-01    .13713E-03   -.91925    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58701e-11
Minuit parameter uncertainties:
  1  1.13972
  2  0.680022
  3  0.265482
  4  0.0782995
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/853911': 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) = 11369.7061287
delta logL = 0.902846984351

Extracting fit parameters...

4FGL J1728.0+1216
   Spectrum: PowerLaw
270    Prefactor:  6.927e-01  1.140e+00  0.000e+00  1.000e+06 ( 1.000e-12)
271        Index:  1.120e+00  6.800e-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.024e+00  7.830e-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.605e-01  2.655e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.37
Ra Dec: 262.020 12.276
Photon Index (Free Index): 1.12 +/- 0.68
Photon Flux (Free Index): 4.30e-09 +/- 5.83e-09
Energy Flux (Free Index): 4.54e-05 +/- 7.49e-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/853911/cmap_HighResolution_697075201_697334401_4FGL_J1728.0+1216_daily_bin1766.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', comment='SUCCESS', energy_flux2='4.54e-05', dlogl='9.03e-01', photon_flux2='4.30e-09', job_status='DONE', time_completed='2023-02-06 01:19:05.080648', photon_index_error2='0.68', photon_index2='1.12', ts='0.57', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.31e-07', energy_flux_error2='7.49e-05', EG='0.74', time_epoch_completed='1675675145.08', return_code='0', job_id='853911', GAL2='1.02', EG2='0.76', return_code2='0', photon_flux_error2='5.83e-09', ts2='2.37', photon_index='2.45' WHERE bin_id='1766' AND source_name='4FGL J1728.0+1216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Feb  6 01:19:05 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 853911: <4FGL_J1728.0+1216_daily_bin1766> in cluster <slac> Done

Job <4FGL_J1728.0+1216_daily_bin1766> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Feb  6 01:05:26 2023
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb  6 01:06:15 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb  6 01:06:15 2023
Terminated at Mon Feb  6 01:19:05 2023
Results reported at Mon Feb  6 01:19:05 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1728.0+1216_daily_bin1766 262.02 12.2756 697075201 697334401 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 :                                   707.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             345.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   770 sec.
    Turnaround time :                            819 sec.

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

