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


Performing analysis on: 4FGL_J1728.0+1216_daily_bin213
RA = 262.02, Dec = 12.2756
tmin = 294537601, tmax = 294796801
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='726739', job_status='RUN', time_executed='2021-09-17 11:50:39.292837', time_epoch_executed='1631904639.29' WHERE source_name='4FGL J1728.0+1216' and cadence='daily' and bin_id='213'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/726739

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/726739/ft1_4FGL_J1728.0+1216_daily_bin213.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/726739/ft2_4FGL_J1728.0+1216_daily_bin213.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/726739/ft1_4FGL_J1728.0+1216_daily_bin213.fits outfile=/scratch/kocevski/726739/ft1_filteredMKT_4FGL_J1728.0+1216_daily_bin213.fits ra=262.02 dec=12.2756 rad=12.0 tmin=294537601.0 tmax=294796801.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 2.36
user 2.15
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/726739/ft2_4FGL_J1728.0+1216_daily_bin213.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/726739/ft1_filteredMKT_4FGL_J1728.0+1216_daily_bin213.fits evtable="EVENTS" outfile="/scratch/kocevski/726739/ft1_filtered_4FGL_J1728.0+1216_daily_bin213.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/726739/ft1_filtered_4FGL_J1728.0+1216_daily_bin213.fits" evtable="EVENTS" scfile=/scratch/kocevski/726739/ft2_4FGL_J1728.0+1216_daily_bin213.fits sctable="SC_DATA" outfile=/scratch/kocevski/726739/ltcube_294537601_294796801_4FGL_J1728.0+1216_daily_bin213.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/726739/ft2_4FGL_J1728.0+1216_daily_bin213.fits
.....................!
real 11.96
user 11.59
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/726739/ft1_filtered_4FGL_J1728.0+1216_daily_bin213.fits evtable="EVENTS" scfile=/scratch/kocevski/726739/ft2_4FGL_J1728.0+1216_daily_bin213.fits sctable="SC_DATA" expcube=/scratch/kocevski/726739/ltcube_294537601_294796801_4FGL_J1728.0+1216_daily_bin213.fits outfile=/scratch/kocevski/726739/expmap_294537601_294796801_4FGL_J1728.0+1216_daily_bin213.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/726739/ltcube_294537601_294796801_4FGL_J1728.0+1216_daily_bin213.fits
.....................!
real 190.58
user 185.36
sys 4.87

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/726739/ft1_filtered_4FGL_J1728.0+1216_daily_bin213.fits scfile=/scratch/kocevski/726739/ft2_4FGL_J1728.0+1216_daily_bin213.fits outfile=/scratch/kocevski/726739/cmap_294537601_294796801_4FGL_J1728.0+1216_daily_bin213.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/726739/ft1_filtered_4FGL_J1728.0+1216_daily_bin213.fits scfile=/scratch/kocevski/726739/ft2_4FGL_J1728.0+1216_daily_bin213.fits outfile=/scratch/kocevski/726739/cmap_HighResolution_294537601_294796801_4FGL_J1728.0+1216_daily_bin213.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.54
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8050       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10334E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.479       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.7360       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.0504       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .17481E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    10.601       1.0000         .10000E-03   10000.    
     9 'Prefactor '    60.913       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .43095       1.0000         .10000E-03   10000.    
    11 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .13577E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10087E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .90253       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.5701       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .88179       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=   10321.65     FROM MIGRAD    STATUS=CONVERGED    377 CALLS     1787 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8055        5.4045        .66468E-07   -.94209E-04
   2  Prefactor     .10000E-03    38.916       -.26028E-06** at limit **
   3  Prefactor     14.494        61.040       -.12484E-05   -.10269E-04
   4  Prefactor     1.7415        6.8693        .15906E-05   -.88349E-04
   5  Prefactor     .10000E-03    3.2337       -.37306E-07** at limit **
   6  norm          1.0504        1.0999       -.52131E-07    .35744E-04
   7  Prefactor     .10050E-03    9.6177        .14480E-05** at limit **
   8  norm          10.602        7.6435       -.45561E-06   -.10467E-03
   9  Prefactor     61.023        66.745       -.13136E-05   -.85683E-05
  10  Prefactor     .43151        1.5184        .14548E-05   -.48882E-04
  11  norm          .10000E-03    3.3386        .72771E-06** at limit **
  12  norm          .10000E-03    1.7111        .17224E-06** at limit **
  13  norm          .10000E-03    7.0719        .28088E-05** at limit **
  14  norm          .10000E-03    25.189       -.28960E-07** at limit **
  15  norm          .90267        .67196        .78654E-07   -.93086E-05
  16  Prefactor     .10000E-03    90.544       -.49412E-06** at limit **
  17  Normalizat    1.5698        .26700       -.18357E-05   -.20625E-03
  18  Prefactor     .88181        .73321E-01   -.13414E-06   -.61272E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.80552
  Prefactor  = 0.0001
  Prefactor  = 14.4939
  Prefactor  = 1.7415
  Prefactor  = 0.0001
  norm       = 1.05044
  Prefactor  = 0.000100505
  norm       = 10.6015
  Prefactor  = 61.0231
  Prefactor  = 0.431514
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.902674
  Prefactor  = 0.0001
  Normalizat = 1.56978
  Prefactor  = 0.881807
 **********
 **   18 **HESSE 
 **********

 FCN=   10321.65     FROM HESSE     STATUS=OK           250 CALLS     2037 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8055        5.3978        .16669E-03   -1.5226    
   2  Prefactor     .10000E-03    39.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.494        60.731        .10526E-03   -1.4946    
   4  Prefactor     1.7415        6.8300        .31851E-03   -1.5444    
   5  Prefactor     .10000E-03    3.2391        .17841E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.0504        1.1200        .10635E-03   -1.5503    
   7  Prefactor     .10050E-03    86.997        .57821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10.602        7.6349        .12305E-03   -1.5057    
   9  Prefactor     61.023        66.144        .25705E-03   -1.4144    
  10  Prefactor     .43151        1.4888        .22710E-03   -1.5577    
  11  norm          .10000E-03    3.3517        .18127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.6305        .25893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    7.0544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    25.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .90267        .66029        .69365E-04   -1.5518    
  16  Prefactor     .10000E-03    91.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.5698        .30887        .41832E-03   -.75836    
  18  Prefactor     .88181        .85849E-01    .15075E-03   -.96780    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.44161e-09
Minuit parameter uncertainties:
  1  5.39829
  2  6.52385e-05
  3  59.4404
  4  6.8331
  5  2.80179e-06
  6  1.12
  7  0.0132718
  8  7.63556
  9  66.2239
  10  1.48896
  11  8.01208e-08
  12  1.43136e-05
  13  1.40469e-05
  14  2.98811e-06
  15  0.660292
  16  0.000167156
  17  0.309246
  18  0.0858624
Done.

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

Extracting fit parameters...

4FGL J1728.0+1216
   Spectrum: PowerLaw
270    Prefactor:  4.315e-01  1.489e+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:  8.818e-01  8.586e-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.570e+00  3.092e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/726739/likelihoodResults_294537601_294796801_4FGL_J1728.0+1216_daily_bin213.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) = 10321.1302176
delta logL = 0.519642314337

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10321.0548438
delta logL = 0.595016062998

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0212       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3401       1.0000          .0000       10.000    
     3 'Normalizat'    1.5799       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87901       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=   10321.05     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      234 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0208        2.0862        .31014E-01    .55194E-04
   2  Index         1.3403        .55084        .31944       -.90484E-04
   3  Normalizat    1.5799        .25934        .94204E-01    .17642E-04
   4  Prefactor     .87905        .73111E-01    .34155E-01   -.47611E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.02076
  Index      = 1.3403
  Normalizat = 1.57987
  Prefactor  = 0.879046
 **********
 **   18 **HESSE 
 **********

 FCN=   10321.05     FROM HESSE     STATUS=OK            33 CALLS      267 TOTAL
                     EDM=   .93E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0208        1.5702        .18396E-02   -1.5506    
   2  Index         1.3403        .71813        .14473E-01   -.82117    
   3  Normalizat    1.5799        .30257        .41721E-03   -.75558    
   4  Prefactor     .87905        .85501E-01    .15091E-03   -.96877    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.32488e-12
Minuit parameter uncertainties:
  1  1.57025
  2  0.723555
  3  0.302917
  4  0.0855136
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/726739': 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) = 10321.0548436
delta logL = 0.595016295159

Extracting fit parameters...

4FGL J1728.0+1216
   Spectrum: PowerLaw
270    Prefactor:  1.021e+00  1.570e+00  1.000e-04  1.000e+04 ( 1.000e-12)
271        Index:  1.340e+00  7.236e-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:  8.790e-01  8.551e-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.580e+00  3.029e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.29
Ra Dec: 262.020 12.276
Photon Index (Free Index): 1.34 +/- 0.72
Photon Flux (Free Index): 5.97e-09 +/- 9.40e-09
Energy Flux (Free Index): 3.21e-05 +/- 6.41e-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/726739/cmap_HighResolution_294537601_294796801_4FGL_J1728.0+1216_daily_bin213.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.71e-03', comment='SUCCESS', energy_flux2='3.21e-05', dlogl='5.95e-01', photon_flux2='5.97e-09', job_status='DONE', time_completed='2021-09-17 12:03:24.782039', photon_index_error2='0.72', photon_index2='1.34', ts='0.10', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='9.94e-08', energy_flux_error2='6.41e-05', EG='1.57', time_epoch_completed='1631905404.78', return_code='0', job_id='726739', GAL2='0.88', EG2='1.58', return_code2='0', photon_flux_error2='9.40e-09', ts2='1.29', photon_index='2.45' WHERE bin_id='213' AND source_name='4FGL J1728.0+1216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 12:03:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0013>
Subject: Job 726739: <4FGL_J1728.0+1216_daily_bin213> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1728.0+1216_daily_bin213 262.02 12.2756 294537601 294796801 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 :                                   761.20 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             346.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            782 sec.

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

