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


Performing analysis on: 4FGL_J1728.0+1216_daily_bin883
RA = 262.02, Dec = 12.2756
tmin = 468201601, tmax = 468460801
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='731061', job_status='RUN', time_executed='2021-09-17 12:05:46.812590', time_epoch_executed='1631905546.81' WHERE source_name='4FGL J1728.0+1216' and cadence='daily' and bin_id='883'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/731061

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/731061/ft1_4FGL_J1728.0+1216_daily_bin883.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/731061/ft2_4FGL_J1728.0+1216_daily_bin883.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/731061/ft1_4FGL_J1728.0+1216_daily_bin883.fits outfile=/scratch/kocevski/731061/ft1_filteredMKT_4FGL_J1728.0+1216_daily_bin883.fits ra=262.02 dec=12.2756 rad=12.0 tmin=468201601.0 tmax=468460801.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.47
user 3.21
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/731061/ft2_4FGL_J1728.0+1216_daily_bin883.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/731061/ft1_filteredMKT_4FGL_J1728.0+1216_daily_bin883.fits evtable="EVENTS" outfile="/scratch/kocevski/731061/ft1_filtered_4FGL_J1728.0+1216_daily_bin883.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/731061/ft1_filtered_4FGL_J1728.0+1216_daily_bin883.fits" evtable="EVENTS" scfile=/scratch/kocevski/731061/ft2_4FGL_J1728.0+1216_daily_bin883.fits sctable="SC_DATA" outfile=/scratch/kocevski/731061/ltcube_468201601_468460801_4FGL_J1728.0+1216_daily_bin883.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/731061/ft2_4FGL_J1728.0+1216_daily_bin883.fits
.....................!
real 11.54
user 11.17
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/731061/ft1_filtered_4FGL_J1728.0+1216_daily_bin883.fits evtable="EVENTS" scfile=/scratch/kocevski/731061/ft2_4FGL_J1728.0+1216_daily_bin883.fits sctable="SC_DATA" expcube=/scratch/kocevski/731061/ltcube_468201601_468460801_4FGL_J1728.0+1216_daily_bin883.fits outfile=/scratch/kocevski/731061/expmap_468201601_468460801_4FGL_J1728.0+1216_daily_bin883.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/731061/ltcube_468201601_468460801_4FGL_J1728.0+1216_daily_bin883.fits
.....................!
real 189.44
user 184.81
sys 4.28

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/731061/ft1_filtered_4FGL_J1728.0+1216_daily_bin883.fits scfile=/scratch/kocevski/731061/ft2_4FGL_J1728.0+1216_daily_bin883.fits outfile=/scratch/kocevski/731061/cmap_468201601_468460801_4FGL_J1728.0+1216_daily_bin883.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/731061/ft1_filtered_4FGL_J1728.0+1216_daily_bin883.fits scfile=/scratch/kocevski/731061/ft2_4FGL_J1728.0+1216_daily_bin883.fits outfile=/scratch/kocevski/731061/cmap_HighResolution_468201601_468460801_4FGL_J1728.0+1216_daily_bin883.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.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4336       1.0000         .10000E-03   10000.    
     2 'Prefactor '    67.178       1.0000         .10000E-03   10000.    
     3 'Prefactor '    63.404       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.963       1.0000         .10000E-03   10000.    
     6 'norm      '    5.5575       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.4870       1.0000         .10000E-03   10000.    
     8 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    43.954       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.3098       1.0000         .10000E-03   10000.    
    11 'norm      '    22.502       1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.8178       1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .74819       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.2237       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .93113       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=   11091.82     FROM MIGRAD    STATUS=CONVERGED    354 CALLS     1831 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4343        7.1340        .68591E-05    .38828E-04
   2  Prefactor     67.179        33.206       -.26336E-06   -.39261E-04
   3  Prefactor     63.398        70.894        .63787E-06   -.45558E-05
   4  Prefactor     .10000E-03    8.2565       -.56498E-06** at limit **
   5  Prefactor     23.963        15.294        .24121E-06   -.36334E-04
   6  norm          5.5578        3.7165        .24696E-06   -.22495E-04
   7  Prefactor     7.4883        7.9737       -.35998E-06   -.46343E-04
   8  norm          .10000E-03    8.4035       -.21940E-07** at limit **
   9  Prefactor     43.853        99.776        .22926E-04    .11111E-03
  10  Prefactor     3.3098        2.9414        .63423E-07   -.13950E-03
  11  norm          22.503        13.025       -.16761E-05   -.18566E-04
  12  norm          .10000E-03    2.9089        .22543E-07** at limit **
  13  norm          1.8257        11.760        .12963E-04   -.22431E-03
  14  norm          .10000E-03    22.877       -.10993E-06** at limit **
  15  norm          .74813        .72698        .27505E-07   -.55465E-03
  16  Prefactor     .10000E-03    14.844        .65757E-07** at limit **
  17  Normalizat    1.2237        .27416       -.24132E-05    .27047E-04
  18  Prefactor     .93115        .72643E-01   -.74525E-06   -.15851E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.43431
  Prefactor  = 67.1791
  Prefactor  = 63.3984
  Prefactor  = 0.0001
  Prefactor  = 23.9627
  norm       = 5.55777
  Prefactor  = 7.48826
  norm       = 0.0001
  Prefactor  = 43.8532
  Prefactor  = 3.30978
  norm       = 22.5027
  norm       = 0.0001
  norm       = 1.82571
  norm       = 0.0001
  norm       = 0.748134
  Prefactor  = 0.0001
  Normalizat = 1.22366
  Prefactor  = 0.931148
 **********
 **   18 **HESSE 
 **********

 FCN=   11091.82     FROM HESSE     STATUS=OK           246 CALLS     2077 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4343        7.1513        .10914E-02   -1.5337    
   2  Prefactor     67.179        33.252        .48969E-04   -1.4067    
   3  Prefactor     63.398        70.894        .50396E-04   -1.4114    
   4  Prefactor     .10000E-03    8.4616        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     23.963        15.319        .81829E-04   -1.4729    
   6  norm          5.5578        3.7142        .15820E-03   -1.5236    
   7  Prefactor     7.4883        7.9687        .14657E-03   -1.5161    
   8  norm          .10000E-03    8.4557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     43.853        100.36        .60471E-04   -1.4383    
  10  Prefactor     3.3098        2.9281        .16104E-03   -1.5344    
  11  norm          22.503        13.023        .84441E-04   -1.4759    
  12  norm          .10000E-03    2.9618        .17539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.8257        11.886        .15488E-02   -1.5438    
  14  norm          .10000E-03    22.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .74813        .65904        .84773E-03   -1.5535    
  16  Prefactor     .10000E-03    14.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.2237        .30785        .47773E-03   -.85875    
  18  Prefactor     .93115        .82248E-01    .15025E-03   -.95061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.24598e-10
Minuit parameter uncertainties:
  1  7.1531
  2  33.2615
  3  70.9885
  4  8.17466e-05
  5  15.3212
  6  3.71431
  7  7.96983
  8  1.05848e-05
  9  100.747
  10  2.92822
  11  13.025
  12  1.64057e-06
  13  9.31938
  14  7.02978e-06
  15  0.65905
  16  2.36764e-05
  17  0.308313
  18  0.0822592
Done.

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

Extracting fit parameters...

4FGL J1728.0+1216
   Spectrum: PowerLaw
270    Prefactor:  3.310e+00  2.928e+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:  9.311e-01  8.226e-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.224e+00  3.083e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.82
Ra Dec: 262.020 12.276
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 6.54e-08 +/- 5.78e-08
Energy Flux (Fixed Index): 2.00e-05 +/- 1.77e-05

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

Saving results to:
/scratch/kocevski/731061/likelihoodResults_468201601_468460801_4FGL_J1728.0+1216_daily_bin883.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) = 11091.7320578
delta logL = 0.0912175911108

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11091.7271642
delta logL = 0.096111212335

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1680       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2051       1.0000          .0000       10.000    
     3 'Normalizat'    1.2355       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92892       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11091.73     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      278 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1682        3.8794        .17796E-03   -.95683E-03
   2  Index         2.2053        .54913        .86143E-02   -.14707E-03
   3  Normalizat    1.2355        .28870        .47578E-03    .12755E-03
   4  Prefactor     .92895        .80901E-01    .15041E-03    .48233E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.16824
  Index      = 2.20532
  Normalizat = 1.23546
  Prefactor  = 0.928945
 **********
 **   18 **HESSE 
 **********

 FCN=   11091.73     FROM HESSE     STATUS=OK            25 CALLS      303 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1682        3.8037        .71185E-05   -1.5300    
   2  Index         2.2053        .53831        .34457E-03   -.59310    
   3  Normalizat    1.2355        .28878        .19031E-04   -.85514    
   4  Prefactor     .92895        .80927E-01    .30081E-04   -.95137    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.03535e-10
Minuit parameter uncertainties:
  1  3.8039
  2  0.539838
  3  0.289153
  4  0.0809378
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/731061': 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) = 11091.7271641
delta logL = 0.0961113571611

Extracting fit parameters...

4FGL J1728.0+1216
   Spectrum: PowerLaw
270    Prefactor:  4.168e+00  3.804e+00  1.000e-04  1.000e+04 ( 1.000e-12)
271        Index:  2.205e+00  5.398e-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:  9.289e-01  8.094e-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.235e+00  2.892e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.01
Ra Dec: 262.020 12.276
Photon Index (Free Index): 2.21 +/- 0.54
Photon Flux (Free Index): 5.59e-08 +/- 5.56e-08
Energy Flux (Free Index): 2.49e-05 +/- 2.47e-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/731061/cmap_HighResolution_468201601_468460801_4FGL_J1728.0+1216_daily_bin883.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.44e-02', comment='SUCCESS', photon_flux='6.54e-08', energy_flux2='2.49e-05', photon_flux_error='5.78e-08', dlogl='9.61e-02', energy_flux='2.00e-05', photon_flux2='5.59e-08', job_status='DONE', time_completed='2021-09-17 12:19:05.824837', photon_index_error2='0.54', photon_index2='2.21', ts='1.82', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.86e-07', energy_flux_error2='2.47e-05', EG='1.22', time_epoch_completed='1631906345.82', return_code='0', job_id='731061', GAL2='0.93', EG2='1.24', return_code2='0', energy_flux_error='1.77e-05', photon_flux_error2='5.56e-08', ts2='2.01', photon_index='2.45' WHERE bin_id='883' AND source_name='4FGL J1728.0+1216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 12:19:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 731061: <4FGL_J1728.0+1216_daily_bin883> in cluster <slac> Done

Job <4FGL_J1728.0+1216_daily_bin883> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 17 12:05:37 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 12:05:38 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:38 2021
Terminated at Fri Sep 17 12:19:06 2021
Results reported at Fri Sep 17 12:19:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1728.0+1216_daily_bin883 262.02 12.2756 468201601 468460801 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 :                                   795.35 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             332.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            809 sec.

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

