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


Performing analysis on: 4FGL_J1728.0+1216_daily_bin233
RA = 262.02, Dec = 12.2756
tmin = 299721601, tmax = 299980801
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='726767', job_status='RUN', time_executed='2021-09-17 11:53:41.358300', time_epoch_executed='1631904821.36' WHERE source_name='4FGL J1728.0+1216' and cadence='daily' and bin_id='233'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/726767

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/726767/ft1_4FGL_J1728.0+1216_daily_bin233.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/726767/ft2_4FGL_J1728.0+1216_daily_bin233.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/726767/ft1_4FGL_J1728.0+1216_daily_bin233.fits outfile=/scratch/kocevski/726767/ft1_filteredMKT_4FGL_J1728.0+1216_daily_bin233.fits ra=262.02 dec=12.2756 rad=12.0 tmin=299721601.0 tmax=299980801.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.37
user 3.14
sys 0.21

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/726767/ft1_filtered_4FGL_J1728.0+1216_daily_bin233.fits evtable="EVENTS" scfile=/scratch/kocevski/726767/ft2_4FGL_J1728.0+1216_daily_bin233.fits sctable="SC_DATA" expcube=/scratch/kocevski/726767/ltcube_299721601_299980801_4FGL_J1728.0+1216_daily_bin233.fits outfile=/scratch/kocevski/726767/expmap_299721601_299980801_4FGL_J1728.0+1216_daily_bin233.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/726767/ltcube_299721601_299980801_4FGL_J1728.0+1216_daily_bin233.fits
.....................!
real 190.82
user 185.86
sys 4.63

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/726767/ft1_filtered_4FGL_J1728.0+1216_daily_bin233.fits scfile=/scratch/kocevski/726767/ft2_4FGL_J1728.0+1216_daily_bin233.fits outfile=/scratch/kocevski/726767/cmap_299721601_299980801_4FGL_J1728.0+1216_daily_bin233.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/726767/ft1_filtered_4FGL_J1728.0+1216_daily_bin233.fits scfile=/scratch/kocevski/726767/ft2_4FGL_J1728.0+1216_daily_bin233.fits outfile=/scratch/kocevski/726767/cmap_HighResolution_299721601_299980801_4FGL_J1728.0+1216_daily_bin233.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.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.948       1.0000         .10000E-03   10000.    
     3 'Prefactor '    34.648       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.639       1.0000         .10000E-03   10000.    
     6 'norm      '    8.8464       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.1481       1.0000         .10000E-03   10000.    
     8 'norm      '    17.207       1.0000         .10000E-03   10000.    
     9 'Prefactor '    48.059       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.6651       1.0000         .10000E-03   10000.    
    11 'norm      '    1.2684       1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.9183       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0756       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .98664       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=   10679.84     FROM MIGRAD    STATUS=CONVERGED    344 CALLS     1709 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.6722       -.13450E-07** at limit **
   2  Prefactor     12.955        28.760        .24156E-05    .13423E-03
   3  Prefactor     34.652        34.329        .91920E-06    .11123E-03
   4  Prefactor     .10000E-03    5.2920       -.86399E-07** at limit **
   5  Prefactor     15.642        16.758        .39360E-06    .66584E-04
   6  norm          8.8468        3.6801        .11219E-06   -.20977E-03
   7  Prefactor     7.1483        11.190        .21829E-05   -.32939E-03
   8  norm          17.205        12.988       -.31329E-06   -.31753E-04
   9  Prefactor     48.046        63.856       -.34055E-05   -.14820E-03
  10  Prefactor     3.6657        4.0448        .20468E-06   -.20517E-03
  11  norm          1.2501        28.213        .27783E-05   -.48956E-04
  12  norm          .10000E-03    1.6314       -.39242E-08** at limit **
  13  norm          .10000E-03    6.5821       -.16912E-06** at limit **
  14  norm          .10000E-03    21.088        .15097E-06** at limit **
  15  norm          1.9182        1.0388        .11165E-06   -.48390E-03
  16  Prefactor     .10000E-03    17.198       -.13075E-06** at limit **
  17  Normalizat    1.0752        .28906       -.16810E-05   -.22600E-04
  18  Prefactor     .98674        .78252E-01    .16381E-06   -.19432E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 12.9548
  Prefactor  = 34.6524
  Prefactor  = 0.0001
  Prefactor  = 15.6421
  norm       = 8.84685
  Prefactor  = 7.14829
  norm       = 17.2053
  Prefactor  = 48.0461
  Prefactor  = 3.66575
  norm       = 1.25012
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.91823
  Prefactor  = 0.0001
  Normalizat = 1.07516
  Prefactor  = 0.986737
 **********
 **   18 **HESSE 
 **********

 FCN=   10679.84     FROM HESSE     STATUS=OK           244 CALLS     1953 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.7572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.955        29.615        .11132E-03   -1.4988    
   3  Prefactor     34.652        34.711        .68080E-04   -1.4530    
   4  Prefactor     .10000E-03    5.4110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.642        16.818        .10128E-03   -1.4917    
   6  norm          8.8468        3.6870        .61664E-03   -1.5113    
   7  Prefactor     7.1483        11.587        .75017E-03   -1.5173    
   8  norm          17.205        12.948        .96554E-04   -1.4878    
   9  Prefactor     48.046        65.620        .57842E-04   -1.4321    
  10  Prefactor     3.6657        4.0081        .18932E-03   -1.5325    
  11  norm          1.2501        28.891        .39526E-03   -1.5484    
  12  norm          .10000E-03    1.6465        .12890E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.6302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    21.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.9182        1.0430        .15002E-03   -1.5431    
  16  Prefactor     .10000E-03    17.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.0752        .32284        .50122E-03   -.90553    
  18  Prefactor     .98674        .88646E-01    .14721E-03   -.93173    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.29043e-10
Minuit parameter uncertainties:
  1  2.00802e-06
  2  29.6487
  3  34.7316
  4  3.39631e-06
  5  16.8234
  6  3.68708
  7  11.5904
  8  12.9504
  9  65.7193
  10  4.00844
  11  12.0256
  12  1.75932e-07
  13  6.44719e-06
  14  3.11096e-05
  15  1.04305
  16  2.11297e-05
  17  0.323434
  18  0.0886593
Done.

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

Extracting fit parameters...

4FGL J1728.0+1216
   Spectrum: PowerLaw
270    Prefactor:  3.666e+00  4.008e+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.867e-01  8.866e-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.075e+00  3.234e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.13
Ra Dec: 262.020 12.276
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 7.25e-08 +/- 7.92e-08
Energy Flux (Fixed Index): 2.22e-05 +/- 2.42e-05

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

Saving results to:
/scratch/kocevski/726767/likelihoodResults_299721601_299980801_4FGL_J1728.0+1216_daily_bin233.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) = 10679.8265179
delta logL = 0.0102079170356

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10679.8146472
delta logL = 0.0220785656256

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4796       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2739       1.0000          .0000       10.000    
     3 'Normalizat'    1.0862       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98425       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=   10679.81     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      223 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4763        85.403        .47560E-02    .76695E-03
   2  Index         2.2749        2.9236        .24419        .71558E-04
   3  Normalizat    1.0856        .76518E-01    .11257        .65660E-04
   4  Prefactor     .98445        .19578E-01    .33348E-01   -.34502E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.4763
  Index      = 2.27485
  Normalizat = 1.08556
  Prefactor  = 0.984453
 **********
 **   18 **HESSE 
 **********

 FCN=   10679.81     FROM HESSE     STATUS=OK            33 CALLS      256 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4763        5.8523        .19024E-03   -1.5285    
   2  Index         2.2749        .84237        .86252E-02   -.57642    
   3  Normalizat    1.0856        .30717        .49913E-03   -.90217    
   4  Prefactor     .98445        .86653E-01    .14735E-03   -.93250    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50233e-11
Minuit parameter uncertainties:
  1  5.85304
  2  0.848147
  3  0.307678
  4  0.0866654
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/726767': 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) = 10679.814644
delta logL = 0.0220818227735

Extracting fit parameters...

4FGL J1728.0+1216
   Spectrum: PowerLaw
270    Prefactor:  4.476e+00  5.853e+00  1.000e-04  1.000e+04 ( 1.000e-12)
271        Index:  2.275e+00  8.481e-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.845e-01  8.667e-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.086e+00  3.077e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.19
Ra Dec: 262.020 12.276
Photon Index (Free Index): 2.27 +/- 0.85
Photon Flux (Free Index): 6.66e-08 +/- 7.31e-08
Energy Flux (Free Index): 2.63e-05 +/- 3.61e-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/726767/cmap_HighResolution_299721601_299980801_4FGL_J1728.0+1216_daily_bin233.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.67e-02', comment='SUCCESS', photon_flux='7.25e-08', energy_flux2='2.63e-05', photon_flux_error='7.92e-08', dlogl='2.21e-02', energy_flux='2.22e-05', photon_flux2='6.66e-08', job_status='DONE', time_completed='2021-09-17 12:06:29.611193', photon_index_error2='0.85', photon_index2='2.27', ts='1.13', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='2.16e-07', energy_flux_error2='3.61e-05', EG='1.08', time_epoch_completed='1631905589.61', return_code='0', job_id='726767', GAL2='0.98', EG2='1.09', return_code2='0', energy_flux_error='2.42e-05', photon_flux_error2='7.31e-08', ts2='1.19', photon_index='2.45' WHERE bin_id='233' AND source_name='4FGL J1728.0+1216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 12:06:29 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1728.0+1216_daily_bin233 262.02 12.2756 299721601 299980801 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 :                                   765.39 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             311.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   962 sec.
    Turnaround time :                            965 sec.

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

