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


Performing analysis on: 4FGL_J1728.0+1216_daily_bin262
RA = 262.02, Dec = 12.2756
tmin = 307238401, tmax = 307497601
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='726811', job_status='RUN', time_executed='2021-09-17 11:52:35.222328', time_epoch_executed='1631904755.22' WHERE source_name='4FGL J1728.0+1216' and cadence='daily' and bin_id='262'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/726811

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/726811/ft1_4FGL_J1728.0+1216_daily_bin262.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/726811/ft2_4FGL_J1728.0+1216_daily_bin262.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/726811/ft1_4FGL_J1728.0+1216_daily_bin262.fits outfile=/scratch/kocevski/726811/ft1_filteredMKT_4FGL_J1728.0+1216_daily_bin262.fits ra=262.02 dec=12.2756 rad=12.0 tmin=307238401.0 tmax=307497601.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 6.43
user 6.13
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/726811/ft2_4FGL_J1728.0+1216_daily_bin262.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/726811/ft1_filteredMKT_4FGL_J1728.0+1216_daily_bin262.fits evtable="EVENTS" outfile="/scratch/kocevski/726811/ft1_filtered_4FGL_J1728.0+1216_daily_bin262.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.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/726811/ft1_filtered_4FGL_J1728.0+1216_daily_bin262.fits evtable="EVENTS" scfile=/scratch/kocevski/726811/ft2_4FGL_J1728.0+1216_daily_bin262.fits sctable="SC_DATA" expcube=/scratch/kocevski/726811/ltcube_307238401_307497601_4FGL_J1728.0+1216_daily_bin262.fits outfile=/scratch/kocevski/726811/expmap_307238401_307497601_4FGL_J1728.0+1216_daily_bin262.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/726811/ltcube_307238401_307497601_4FGL_J1728.0+1216_daily_bin262.fits
.....................!
real 190.58
user 185.42
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/726811/ft1_filtered_4FGL_J1728.0+1216_daily_bin262.fits scfile=/scratch/kocevski/726811/ft2_4FGL_J1728.0+1216_daily_bin262.fits outfile=/scratch/kocevski/726811/cmap_307238401_307497601_4FGL_J1728.0+1216_daily_bin262.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/726811/ft1_filtered_4FGL_J1728.0+1216_daily_bin262.fits scfile=/scratch/kocevski/726811/ft2_4FGL_J1728.0+1216_daily_bin262.fits outfile=/scratch/kocevski/726811/cmap_HighResolution_307238401_307497601_4FGL_J1728.0+1216_daily_bin262.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/726811/ft1_filtered_4FGL_J1728.0+1216_daily_bin262.fits evtable="EVENTS" scfile=/scratch/kocevski/726811/ft2_4FGL_J1728.0+1216_daily_bin262.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/726811/Model_4FGL_J1728.0+1216_daily_bin262.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/726811/ft1_filtered_4FGL_J1728.0+1216_daily_bin262.fits.....................!
real 85.48
user 84.08
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11198E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .22610E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .65943       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.458       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.9689       1.0000         .10000E-03   10000.    
    11 'norm      '    .10190E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10126E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.2842       1.0000         .10000E-03   10000.    
    16 'Prefactor '    33.845       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0303       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0978       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=   9964.841     FROM MIGRAD    STATUS=CONVERGED    649 CALLS     2281 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10406E-03    7.6474        .60608E-01** at limit **
   2  Prefactor     .10000E-03    13.875        .18142E-02** at limit **
   3  Prefactor     .10394E-03    68.878        .22009    ** at limit **
   4  Prefactor     .10000E-03    2.6406        .15818E-02** at limit **
   5  Prefactor     .10000E-03    4.2645        .18142E-02** at limit **
   6  norm          .65951        2.5958        .30707E-03   -.17816E-03
   7  Prefactor     .10000E-03    6.1461        .18142E-02** at limit **
   8  norm          .10000E-03    4.7879        .18142E-02** at limit **
   9  Prefactor     20.428        40.028        .88554E-04    .63677E-04
  10  Prefactor     1.9695        2.8864        .19603E-03    .13803E-04
  11  norm          .10001E-03    36.622        .36285E-03** at limit **
  12  norm          .10000E-03    5.6201        .18142E-02** at limit **
  13  norm          .10000E-03    3.6018        .18142E-02** at limit **
  14  norm          .10000E-03    23.399        .18142E-02** at limit **
  15  norm          1.2843        .88323        .75181E-04    .32270E-03
  16  Prefactor     33.845        27.751        .68881E-04    .21787E-05
  17  Normalizat    1.0304        .32432        .52463E-03   -.14233E-03
  18  Prefactor     1.0978        .90909E-01    .14578E-03   -.91254E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104065
  Prefactor  = 0.0001
  Prefactor  = 0.000103937
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.659512
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 20.4283
  Prefactor  = 1.96947
  norm       = 0.000100007
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.28431
  Prefactor  = 33.8449
  Normalizat = 1.03039
  Prefactor  = 1.09775
 **********
 **   18 **HESSE 
 **********

 FCN=   9964.841     FROM HESSE     STATUS=OK           246 CALLS     2527 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10406E-03    6.2739        .68847E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.875        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10394E-03    70.920        .21601       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.6408        .31637E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.2647        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .65951        2.5953        .12283E-04   -1.5546    
   7  Prefactor     .10000E-03    6.1470        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.7884        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     20.428        40.029        .17711E-04   -1.4804    
  10  Prefactor     1.9695        2.8859        .78411E-05   -1.5427    
  11  norm          .10001E-03    36.624        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    5.6247        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.6019        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    23.399        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.2843        .88322        .30073E-05   -1.5481    
  16  Prefactor     33.845        27.752        .13776E-04   -1.4544    
  17  Normalizat    1.0304        .32434        .20985E-04   -.92019    
  18  Prefactor     1.0978        .90947E-01    .29155E-04   -.89538    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74763e-09
Minuit parameter uncertainties:
  1  0.0101013
  2  2.38804e-05
  3  0.0334605
  4  1.32622e-05
  5  1.40868e-05
  6  2.59577
  7  4.48758e-05
  8  9.93188e-06
  9  40.0812
  10  2.88605
  11  0.00101713
  12  2.92618e-05
  13  2.37986e-05
  14  1.27769e-08
  15  0.883232
  16  27.7621
  17  0.324968
  18  0.0909598
Done.

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

Extracting fit parameters...

4FGL J1728.0+1216
   Spectrum: PowerLaw
270    Prefactor:  1.969e+00  2.886e+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:  1.098e+00  9.096e-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.030e+00  3.250e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/726811/likelihoodResults_307238401_307497601_4FGL_J1728.0+1216_daily_bin262.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) = 9964.38398719
delta logL = 0.456873854391

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9964.34803567
delta logL = 0.492825375622

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10450       1.0000         .10000E-03   10000.    
     2 'Index     '    4.5776       1.0000          .0000       10.000    
     3 'Normalizat'    .93505       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1153       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=   9964.348     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      344 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .97232E-01    1.0354        .57888E-02    .69142E-04
   2  Index         4.6138        2.4219        .11370        .93082E-04
   3  Normalizat    .93502        .58626E-01    .12346       -.69703E-04
   4  Prefactor     1.1152        .16820E-01    .37033E-01   -.35954E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0972323
  Index      = 4.61378
  Normalizat = 0.935018
  Prefactor  = 1.11523
 **********
 **   18 **HESSE 
 **********

 FCN=   9964.348     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      377 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .97232E-01    3.3455        .26400E-03   -1.5646    
   2  Index         4.6138        7.1834        .65807E-02   -.77321E-01
   3  Normalizat    .93502        .22770        .54768E-03   -.95240    
   4  Prefactor     1.1152        .64148E-01    .14472E-03   -.88981    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.15824e-10
Minuit parameter uncertainties:
  1  1.14018
  2  5.87154
  3  0.227936
  4  0.064152
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/726811': 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): 102
logL (Free Index) = 9964.34802288
delta logL = 0.492838162585

Extracting fit parameters...

4FGL J1728.0+1216
   Spectrum: PowerLaw
270    Prefactor:  9.723e-02  1.140e+00  1.000e-04  1.000e+04 ( 1.000e-12)
271        Index:  4.614e+00  5.872e+00  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.115e+00  6.415e-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:  9.350e-01  2.279e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.69
Ra Dec: 262.020 12.276
Photon Index (Free Index): 4.61 +/- 5.87
Photon Flux (Free Index): 1.13e-07 +/- 9.38e-08
Energy Flux (Free Index): 1.56e-05 +/- 1.40e-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/726811/cmap_HighResolution_307238401_307497601_4FGL_J1728.0+1216_daily_bin262.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.29e-02', comment='SUCCESS', energy_flux2='1.56e-05', dlogl='4.93e-01', photon_flux2='1.13e-07', job_status='DONE', time_completed='2021-09-17 12:06:30.337225', photon_index_error2='5.87', photon_index2='4.61', ts='0.58', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='1.66e-07', energy_flux_error2='1.40e-05', EG='1.03', time_epoch_completed='1631905590.34', return_code='0', job_id='726811', GAL2='1.12', EG2='0.94', return_code2='102', photon_flux_error2='9.38e-08', ts2='1.69', photon_index='2.45' WHERE bin_id='262' AND source_name='4FGL J1728.0+1216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 12:06:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 726811: <4FGL_J1728.0+1216_daily_bin262> in cluster <slac> Done

Job <4FGL_J1728.0+1216_daily_bin262> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 17 11:50:28 2021
Job was executed on host(s) <bullet0289>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 11:50:30 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:30 2021
Terminated at Fri Sep 17 12:06:31 2021
Results reported at Fri Sep 17 12:06:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1728.0+1216_daily_bin262 262.02 12.2756 307238401 307497601 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 :                                   816.37 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             298.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   960 sec.
    Turnaround time :                            963 sec.

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

