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


Performing analysis on: 4FGL_J1728.0+1216_daily_bin221
RA = 262.02, Dec = 12.2756
tmin = 296611201, tmax = 296870401
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='726750', job_status='RUN', time_executed='2021-09-17 11:53:11.518907', time_epoch_executed='1631904791.52' WHERE source_name='4FGL J1728.0+1216' and cadence='daily' and bin_id='221'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/726750

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/726750/ft1_4FGL_J1728.0+1216_daily_bin221.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/726750/ft2_4FGL_J1728.0+1216_daily_bin221.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/726750/ft1_4FGL_J1728.0+1216_daily_bin221.fits outfile=/scratch/kocevski/726750/ft1_filteredMKT_4FGL_J1728.0+1216_daily_bin221.fits ra=262.02 dec=12.2756 rad=12.0 tmin=296611201.0 tmax=296870401.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 4.33
user 4.09
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/726750/ft2_4FGL_J1728.0+1216_daily_bin221.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/726750/ft1_filteredMKT_4FGL_J1728.0+1216_daily_bin221.fits evtable="EVENTS" outfile="/scratch/kocevski/726750/ft1_filtered_4FGL_J1728.0+1216_daily_bin221.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.54
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/726750/ft1_filtered_4FGL_J1728.0+1216_daily_bin221.fits" evtable="EVENTS" scfile=/scratch/kocevski/726750/ft2_4FGL_J1728.0+1216_daily_bin221.fits sctable="SC_DATA" outfile=/scratch/kocevski/726750/ltcube_296611201_296870401_4FGL_J1728.0+1216_daily_bin221.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/726750/ft2_4FGL_J1728.0+1216_daily_bin221.fits
.....................!
real 13.12
user 12.74
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/726750/ft1_filtered_4FGL_J1728.0+1216_daily_bin221.fits evtable="EVENTS" scfile=/scratch/kocevski/726750/ft2_4FGL_J1728.0+1216_daily_bin221.fits sctable="SC_DATA" expcube=/scratch/kocevski/726750/ltcube_296611201_296870401_4FGL_J1728.0+1216_daily_bin221.fits outfile=/scratch/kocevski/726750/expmap_296611201_296870401_4FGL_J1728.0+1216_daily_bin221.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/726750/ltcube_296611201_296870401_4FGL_J1728.0+1216_daily_bin221.fits
.....................!
real 191.08
user 186.56
sys 4.12

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/726750/ft1_filtered_4FGL_J1728.0+1216_daily_bin221.fits scfile=/scratch/kocevski/726750/ft2_4FGL_J1728.0+1216_daily_bin221.fits outfile=/scratch/kocevski/726750/cmap_296611201_296870401_4FGL_J1728.0+1216_daily_bin221.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/726750/ft1_filtered_4FGL_J1728.0+1216_daily_bin221.fits scfile=/scratch/kocevski/726750/ft2_4FGL_J1728.0+1216_daily_bin221.fits outfile=/scratch/kocevski/726750/cmap_HighResolution_296611201_296870401_4FGL_J1728.0+1216_daily_bin221.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0865       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.909       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.1899       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.654       1.0000         .10000E-03   10000.    
     8 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10490E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.2613       1.0000         .10000E-03   10000.    
    11 'norm      '    17.378       1.0000         .10000E-03   10000.    
    12 'norm      '    .57640E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .38125       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .87944       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .99351       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13357.03     FROM MIGRAD    STATUS=CONVERGED    366 CALLS     1536 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0855        6.8326         .0000        .11665E-01
   2  Prefactor     .10000E-03    15.456         .0000    ** at limit **
   3  Prefactor     10.909        41.241         .0000        .27625E-03
   4  Prefactor     .10000E-03    1.7420         .0000    ** at limit **
   5  Prefactor     8.1895        9.1783         .0000        .92344E-04
   6  norm          .10000E-03    .79069         .0000    ** at limit **
   7  Prefactor     13.649        12.560         .0000       -.40161E-03
   8  norm          .10000E-03    4.1324         .0000    ** at limit **
   9  Prefactor     .10000E-03    55.890         .0000    ** at limit **
  10  Prefactor     8.2613        2.9577         .0000        .30240E-03
  11  norm          17.377        9.4880         .0000        .14977E-03
  12  norm          .10002E-03    2.0162         .0000    ** at limit **
  13  norm          .10000E-03    6.3094         .0000    ** at limit **
  14  norm          .10000E-03    24.393         .0000    ** at limit **
  15  norm          .38116        .58713         .0000        .30829E-02
  16  Prefactor     .10000E-03    9.0121         .0000    ** at limit **
  17  Normalizat    .87961        .25801         .0000        .63700E-04
  18  Prefactor     .99348        .69393E-01     .0000       -.97489E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.08553
  Prefactor  = 0.000100001
  Prefactor  = 10.9087
  Prefactor  = 0.0001
  Prefactor  = 8.18949
  norm       = 0.0001
  Prefactor  = 13.649
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.26133
  norm       = 17.3768
  norm       = 0.000100018
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.381162
  Prefactor  = 0.0001
  Normalizat = 0.879609
  Prefactor  = 0.993479
 **********
 **   18 **HESSE 
 **********

 FCN=   13357.03     FROM HESSE     STATUS=OK           254 CALLS     1790 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0855        6.8129        .11543E-02   -1.5357    
   2  Prefactor     .10000E-03    15.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.909        41.215        .12130E-03   -1.5047    
   4  Prefactor     .10000E-03    1.7482        .14893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.1895        9.1724        .14009E-03   -1.5136    
   6  norm          .10000E-03    .79786        .10034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.649        12.550        .10840E-03   -1.4969    
   8  norm          .10000E-03    4.1389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    56.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.2613        2.9520        .11186E-03   -1.5133    
  11  norm          17.377        9.4903        .96078E-04   -1.4874    
  12  norm          .10002E-03    1.9455        .53627E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.3681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    24.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .38116        .52198        .10421E-02   -1.5585    
  16  Prefactor     .10000E-03    9.0161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .87961        .28205        .53956E-03   -.97180    
  18  Prefactor     .99348        .77045E-01    .13994E-03   -.92947    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24692e-08
Minuit parameter uncertainties:
  1  6.81463
  2  0.000190486
  3  41.3231
  4  6.1943e-08
  5  9.17392
  6  5.07275e-08
  7  12.5524
  8  6.07315e-07
  9  4.84404e-05
  10  2.95202
  11  9.49115
  12  0.000374852
  13  4.96493e-07
  14  2.91706e-05
  15  0.521989
  16  6.42354e-07
  17  0.282524
  18  0.0770538
Done.

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

Extracting fit parameters...

4FGL J1728.0+1216
   Spectrum: PowerLaw
270    Prefactor:  8.261e+00  2.952e+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.935e-01  7.705e-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:  8.796e-01  2.825e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.69
Ra Dec: 262.020 12.276
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 1.63e-07 +/- 5.83e-08
Energy Flux (Fixed Index): 4.99e-05 +/- 1.78e-05

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) = 13356.6841206
delta logL = 0.347052713838

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13356.683328
delta logL = 0.347845395956

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.389       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2113       1.0000          .0000       10.000    
     3 'Normalizat'    .90723       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98834       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=   13356.68     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      286 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.389        4.3115        .12431E-03    .21210E-02
   2  Index         2.2113        .28490        .56121E-02    .43319E-03
   3  Normalizat    .90745        .27637        .53219E-03    .10164E-03
   4  Prefactor     .98826        .75970E-01    .14027E-03   -.40389E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.3889
  Index      = 2.21131
  Normalizat = 0.907449
  Prefactor  = 0.988265
 **********
 **   18 **HESSE 
 **********

 FCN=   13356.68     FROM HESSE     STATUS=OK            25 CALLS      311 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.389        4.2247        .49724E-05   -1.5063    
   2  Index         2.2113        .27904        .22448E-03   -.59166    
   3  Normalizat    .90745        .27637        .21288E-04   -.96199    
   4  Prefactor     .98826        .75979E-01    .28054E-04   -.93122    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09147e-09
Minuit parameter uncertainties:
  1  4.2248
  2  0.279253
  3  0.276803
  4  0.0759873
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/726750': 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) = 13356.6833275
delta logL = 0.347845896631

Extracting fit parameters...

4FGL J1728.0+1216
   Spectrum: PowerLaw
270    Prefactor:  1.039e+01  4.225e+00  1.000e-04  1.000e+04 ( 1.000e-12)
271        Index:  2.211e+00  2.793e-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.883e-01  7.599e-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.074e-01  2.768e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.38
Ra Dec: 262.020 12.276
Photon Index (Free Index): 2.21 +/- 0.28
Photon Flux (Free Index): 1.41e-07 +/- 5.87e-08
Energy Flux (Free Index): 6.18e-05 +/- 2.84e-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/726750/cmap_HighResolution_296611201_296870401_4FGL_J1728.0+1216_daily_bin221.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.63e-07', energy_flux2='6.18e-05', photon_flux_error='5.83e-08', dlogl='3.48e-01', energy_flux='4.99e-05', photon_flux2='1.41e-07', job_status='DONE', time_completed='2021-09-17 12:05:58.097885', photon_index_error2='0.28', photon_index2='2.21', ts='15.69', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='2.84e-05', EG='0.88', time_epoch_completed='1631905558.1', return_code='0', job_id='726750', GAL2='0.99', EG2='0.91', return_code2='0', energy_flux_error='1.78e-05', photon_flux_error2='5.87e-08', ts2='16.38', photon_index='2.45' WHERE bin_id='221' AND source_name='4FGL J1728.0+1216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 12:05:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 726750: <4FGL_J1728.0+1216_daily_bin221> in cluster <slac> Done

Job <4FGL_J1728.0+1216_daily_bin221> 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) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 11:50:26 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:26 2021
Terminated at Fri Sep 17 12:05:58 2021
Results reported at Fri Sep 17 12:05:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1728.0+1216_daily_bin221 262.02 12.2756 296611201 296870401 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 :                                   764.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             328.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            933 sec.

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

