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


Performing analysis on: 4FGL_J1728.0+1216_daily_bin890
RA = 262.02, Dec = 12.2756
tmin = 470016001, tmax = 470275201
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='731072', job_status='RUN', time_executed='2021-09-17 12:05:50.918857', time_epoch_executed='1631905550.92' WHERE source_name='4FGL J1728.0+1216' and cadence='daily' and bin_id='890'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/731072

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/731072/ft1_4FGL_J1728.0+1216_daily_bin890.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/731072/ft2_4FGL_J1728.0+1216_daily_bin890.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/731072/ft1_4FGL_J1728.0+1216_daily_bin890.fits outfile=/scratch/kocevski/731072/ft1_filteredMKT_4FGL_J1728.0+1216_daily_bin890.fits ra=262.02 dec=12.2756 rad=12.0 tmin=470016001.0 tmax=470275201.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.55
user 3.25
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/731072/ft1_filtered_4FGL_J1728.0+1216_daily_bin890.fits" evtable="EVENTS" scfile=/scratch/kocevski/731072/ft2_4FGL_J1728.0+1216_daily_bin890.fits sctable="SC_DATA" outfile=/scratch/kocevski/731072/ltcube_470016001_470275201_4FGL_J1728.0+1216_daily_bin890.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/731072/ft2_4FGL_J1728.0+1216_daily_bin890.fits
.....................!
real 11.88
user 11.56
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/731072/ft1_filtered_4FGL_J1728.0+1216_daily_bin890.fits evtable="EVENTS" scfile=/scratch/kocevski/731072/ft2_4FGL_J1728.0+1216_daily_bin890.fits sctable="SC_DATA" expcube=/scratch/kocevski/731072/ltcube_470016001_470275201_4FGL_J1728.0+1216_daily_bin890.fits outfile=/scratch/kocevski/731072/expmap_470016001_470275201_4FGL_J1728.0+1216_daily_bin890.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/731072/ltcube_470016001_470275201_4FGL_J1728.0+1216_daily_bin890.fits
.....................!
real 191.41
user 186.29
sys 4.80

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/731072/ft1_filtered_4FGL_J1728.0+1216_daily_bin890.fits scfile=/scratch/kocevski/731072/ft2_4FGL_J1728.0+1216_daily_bin890.fits outfile=/scratch/kocevski/731072/cmap_470016001_470275201_4FGL_J1728.0+1216_daily_bin890.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=262.02 yref=12.2756 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/731072/ft1_filtered_4FGL_J1728.0+1216_daily_bin890.fits scfile=/scratch/kocevski/731072/ft2_4FGL_J1728.0+1216_daily_bin890.fits outfile=/scratch/kocevski/731072/cmap_HighResolution_470016001_470275201_4FGL_J1728.0+1216_daily_bin890.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.711       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    36.323       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4160       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.4383       1.0000         .10000E-03   10000.    
     6 'norm      '    12.581       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.6359       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .96107E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.6682       1.0000         .10000E-03   10000.    
    11 'norm      '    8.4791       1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.0445       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.267       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.1068       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .99742       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=   11371.86     FROM MIGRAD    STATUS=CONVERGED    384 CALLS     1746 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.713        7.5587       -.26961E-05    .10621E-02
   2  Prefactor     .10000E-03    60.315        .41280E-06** at limit **
   3  Prefactor     36.328        51.927        .14469E-05    .10649E-04
   4  Prefactor     1.4124        9.3226       -.38430E-05   -.44140E-03
   5  Prefactor     6.4395        9.6143        .12725E-05   -.23861E-03
   6  norm          12.581        3.9494       -.10889E-06    .91427E-04
   7  Prefactor     .10000E-03    3.9172        .33656E-07** at limit **
   8  norm          1.6314        9.6140       -.80004E-05   -.21613E-03
   9  Prefactor     .10000E-03    410.51       -.25565E-05** at limit **
  10  Prefactor     3.6691        3.2481        .74915E-06   -.32821E-03
  11  norm          8.4486        11.907       -.17072E-05    .97372E-04
  12  norm          .10000E-03    2.1920        .65002E-08** at limit **
  13  norm          .10000E-03    2.7837       -.24744E-08** at limit **
  14  norm          .10000E-03    20.284        .15830E-06** at limit **
  15  norm          1.0445        .84732       -.88523E-07   -.14711E-02
  16  Prefactor     13.258        41.673        .21714E-05   -.37391E-04
  17  Normalizat    1.1064        .27496        .11728E-05    .80006E-04
  18  Prefactor     .99743        .75045E-01    .11321E-06    .33130E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.7133
  Prefactor  = 0.0001
  Prefactor  = 36.3278
  Prefactor  = 1.41238
  Prefactor  = 6.43953
  norm       = 12.5815
  Prefactor  = 0.0001
  norm       = 1.63136
  Prefactor  = 0.000100003
  Prefactor  = 3.66912
  norm       = 8.44864
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.04452
  Prefactor  = 13.2584
  Normalizat = 1.10637
  Prefactor  = 0.997429
 **********
 **   18 **HESSE 
 **********

 FCN=   11371.86     FROM HESSE     STATUS=OK           248 CALLS     1994 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.713        7.3040        .11235E-03   -1.4995    
   2  Prefactor     .10000E-03    60.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     36.328        51.891        .66497E-04   -1.4502    
   4  Prefactor     1.4124        10.348        .36380E-03   -1.5470    
   5  Prefactor     6.4395        9.5630        .15818E-03   -1.5200    
   6  norm          12.581        3.9503        .11293E-03   -1.4998    
   7  Prefactor     .10000E-03    3.9233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.6314        10.307        .33048E-03   -1.5453    
   9  Prefactor     .10000E-03    416.83        .18147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.6691        3.1929        .15729E-03   -1.5325    
  11  norm          8.4486        11.927        .13767E-03   -1.5127    
  12  norm          .10000E-03    2.2043        .15416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.7873        .17375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    20.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.0445        .79683        .84662E-03   -1.5504    
  16  Prefactor     13.258        41.616        .10997E-03   -1.4980    
  17  Normalizat    1.1064        .30554        .50947E-03   -.89548    
  18  Prefactor     .99743        .84670E-01    .14873E-03   -.92815    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84774e-09
Minuit parameter uncertainties:
  1  7.30452
  2  0.000157841
  3  51.9554
  4  7.64753
  5  9.56523
  6  3.95035
  7  5.37566e-06
  8  8.20292
  9  0.00234501
  10  3.19306
  11  11.9307
  12  7.84788e-07
  13  2.42004e-06
  14  1.27722e-05
  15  0.796841
  16  41.7068
  17  0.306026
  18  0.0846811
Done.

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

Extracting fit parameters...

4FGL J1728.0+1216
   Spectrum: PowerLaw
270    Prefactor:  3.669e+00  3.193e+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.974e-01  8.468e-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.106e+00  3.060e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.04
Ra Dec: 262.020 12.276
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 7.25e-08 +/- 6.31e-08
Energy Flux (Fixed Index): 2.22e-05 +/- 1.93e-05

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

Saving results to:
/scratch/kocevski/731072/likelihoodResults_470016001_470275201_4FGL_J1728.0+1216_daily_bin890.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) = 11371.8401105
delta logL = 0.0186543203999

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11371.8247699
delta logL = 0.0339949229474

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0294       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6409       1.0000          .0000       10.000    
     3 'Normalizat'    1.0948       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99954       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=   11371.82     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      222 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0267        49.741        .58286E-02    .19768E-02
   2  Index         2.6421        3.4464        .15231        .36030E-03
   3  Normalizat    1.0949        .96974E-01    .11540        .12122E-03
   4  Prefactor     .99949        .24104E-01    .33628E-01   -.95867E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.02672
  Index      = 2.64207
  Normalizat = 1.09488
  Prefactor  = 0.999493
 **********
 **   18 **HESSE 
 **********

 FCN=   11371.82     FROM HESSE     STATUS=OK            33 CALLS      255 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0267        4.3358        .13881E-03   -1.5360    
   2  Index         2.6421        .89672        .87993E-02   -.49109    
   3  Normalizat    1.0949        .29992        .51176E-03   -.89916    
   4  Prefactor     .99949        .83317E-01    .14860E-03   -.92746    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.99153e-10
Minuit parameter uncertainties:
  1  4.33627
  2  0.903021
  3  0.300385
  4  0.0833281
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/731072': 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) = 11371.8247682
delta logL = 0.033996576245

Extracting fit parameters...

4FGL J1728.0+1216
   Spectrum: PowerLaw
270    Prefactor:  3.027e+00  4.336e+00  1.000e-04  1.000e+04 ( 1.000e-12)
271        Index:  2.642e+00  9.030e-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.995e-01  8.333e-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.095e+00  3.004e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.11
Ra Dec: 262.020 12.276
Photon Index (Free Index): 2.64 +/- 0.90
Photon Flux (Free Index): 8.16e-08 +/- 6.97e-08
Energy Flux (Free Index): 2.06e-05 +/- 1.86e-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/731072/cmap_HighResolution_470016001_470275201_4FGL_J1728.0+1216_daily_bin890.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.48e-02', comment='SUCCESS', photon_flux='7.25e-08', energy_flux2='2.06e-05', photon_flux_error='6.31e-08', dlogl='3.40e-02', energy_flux='2.22e-05', photon_flux2='8.16e-08', job_status='DONE', time_completed='2021-09-17 12:19:01.687785', photon_index_error2='0.90', photon_index2='2.64', ts='2.04', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.91e-07', energy_flux_error2='1.86e-05', EG='1.11', time_epoch_completed='1631906341.69', return_code='0', job_id='731072', GAL2='1.00', EG2='1.09', return_code2='0', energy_flux_error='1.93e-05', photon_flux_error2='6.97e-08', ts2='2.11', photon_index='2.45' WHERE bin_id='890' AND source_name='4FGL J1728.0+1216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 12:19:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 731072: <4FGL_J1728.0+1216_daily_bin890> in cluster <slac> Done

Job <4FGL_J1728.0+1216_daily_bin890> 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) <bullet0104>, 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:02 2021
Results reported at Fri Sep 17 12:19:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1728.0+1216_daily_bin890 262.02 12.2756 470016001 470275201 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 :                                   787.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             372.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            805 sec.

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

