/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 125 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7410
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1728.0+1216_daily_bin388
RA = 262.02, Dec = 12.2756
tmin = 339897601, tmax = 340156801
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='726994', job_status='RUN', time_executed='2021-09-17 11:52:55.440189', time_epoch_executed='1631904775.44' WHERE source_name='4FGL J1728.0+1216' and cadence='daily' and bin_id='388'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/726994

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/726994/ft1_4FGL_J1728.0+1216_daily_bin388.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/726994/ft2_4FGL_J1728.0+1216_daily_bin388.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/726994/ft1_4FGL_J1728.0+1216_daily_bin388.fits outfile=/scratch/kocevski/726994/ft1_filteredMKT_4FGL_J1728.0+1216_daily_bin388.fits ra=262.02 dec=12.2756 rad=12.0 tmin=339897601.0 tmax=340156801.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.31
user 3.09
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/726994/ft1_filtered_4FGL_J1728.0+1216_daily_bin388.fits" evtable="EVENTS" scfile=/scratch/kocevski/726994/ft2_4FGL_J1728.0+1216_daily_bin388.fits sctable="SC_DATA" outfile=/scratch/kocevski/726994/ltcube_339897601_340156801_4FGL_J1728.0+1216_daily_bin388.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/726994/ft2_4FGL_J1728.0+1216_daily_bin388.fits
.....................!
real 11.89
user 11.53
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/726994/ft1_filtered_4FGL_J1728.0+1216_daily_bin388.fits evtable="EVENTS" scfile=/scratch/kocevski/726994/ft2_4FGL_J1728.0+1216_daily_bin388.fits sctable="SC_DATA" expcube=/scratch/kocevski/726994/ltcube_339897601_340156801_4FGL_J1728.0+1216_daily_bin388.fits outfile=/scratch/kocevski/726994/expmap_339897601_340156801_4FGL_J1728.0+1216_daily_bin388.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/726994/ltcube_339897601_340156801_4FGL_J1728.0+1216_daily_bin388.fits
.....................!
real 191.82
user 185.99
sys 5.52

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/726994/ft1_filtered_4FGL_J1728.0+1216_daily_bin388.fits scfile=/scratch/kocevski/726994/ft2_4FGL_J1728.0+1216_daily_bin388.fits outfile=/scratch/kocevski/726994/cmap_339897601_340156801_4FGL_J1728.0+1216_daily_bin388.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/726994/ft1_filtered_4FGL_J1728.0+1216_daily_bin388.fits scfile=/scratch/kocevski/726994/ft2_4FGL_J1728.0+1216_daily_bin388.fits outfile=/scratch/kocevski/726994/cmap_HighResolution_339897601_340156801_4FGL_J1728.0+1216_daily_bin388.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=262.02 yref=12.2756 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0799       1.0000         .10000E-03   10000.    
     2 'Prefactor '    43.938       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.8964       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.570       1.0000         .10000E-03   10000.    
     8 'norm      '    4.2696       1.0000         .10000E-03   10000.    
     9 'Prefactor '    230.12       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.5197       1.0000         .10000E-03   10000.    
    11 'norm      '    .10171E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.6608       1.0000         .10000E-03   10000.    
    13 'norm      '    .14053E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.358       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .83121       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0676       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10992.67     FROM MIGRAD    STATUS=CONVERGED    102 CALLS     1568 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0823        2.0828        .54507E-06    .17356E-02
   2  Prefactor     43.940        1.0032        .48504E-08   -.57974E-03
   3  Prefactor     .10000E-03    24.450       -.10021E-06** at limit **
   4  Prefactor     8.8961        8.1654        .47757E-05    .26942E-02
   5  Prefactor     .10000E-03    7.0532       -.45178E-05** at limit **
   6  norm          .10000E-03    1.4652        .90249E-06** at limit **
   7  Prefactor     12.567        1.3338        .52782E-06   -.10879E-02
   8  norm          4.2691        6.3936       -.45445E-05   -.18585E-02
   9  Prefactor     230.18        4.5084       -.59696E-06    .47894E-01
  10  Prefactor     3.5205        3.3074        .26911E-06    .31173E-03
  11  norm          .10000E-03    6.0146       -.25998E-05** at limit **
  12  norm          4.6618        4.9855        .56749E-05    .41937E-03
  13  norm          .14982        187.26       -.12605E-04   -.35788E-03
  14  norm          .10001E-03    66.136        .41046E-06** at limit **
  15  norm          .10000E-03    .43428        .50977E-06** at limit **
  16  Prefactor     12.360        1.0862        .24419E-06   -.13993E-02
  17  Normalizat    .83124        .30221        .69490E-07    .25035E-04
  18  Prefactor     1.0675        .86944E-01    .70470E-06    .95152E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.0823
  Prefactor  = 43.9396
  Prefactor  = 0.0001
  Prefactor  = 8.8961
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.5668
  norm       = 4.26906
  Prefactor  = 230.18
  Prefactor  = 3.52048
  norm       = 0.0001
  norm       = 4.66181
  norm       = 0.149821
  norm       = 0.000100007
  norm       = 0.0001
  Prefactor  = 12.3603
  Normalizat = 0.831238
  Prefactor  = 1.06747
 **********
 **   18 **HESSE 
 **********

 FCN=   10992.67     FROM HESSE     STATUS=OK           290 CALLS     1858 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0823        5.8507        .71587E-02   -1.5419    
   2  Prefactor     43.940        27.899        .15120E-02   -1.4381    
   3  Prefactor     .10000E-03    24.444        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.8961        8.2418        .33595E-02   -1.5111    
   5  Prefactor     .10000E-03    7.0152        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.4446        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.567        14.451        .28246E-02   -1.4999    
   8  norm          4.2691        6.7089        .48746E-02   -1.5295    
   9  Prefactor     230.18        104.26        .66693E-03   -1.2662    
  10  Prefactor     3.5205        3.3900        .53870E-02   -1.5333    
  11  norm          .10000E-03    5.9754        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.6618        4.9907        .46604E-02   -1.5276    
  13  norm          .14982        5.8324        .13214       -1.5631    
  14  norm          .10001E-03    65.673        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .24313        .28883E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.360        23.076        .28487E-02   -1.5005    
  17  Normalizat    .83124        .28368        .12514       -.98920    
  18  Prefactor     1.0675        .78686E-01    .38976E-01   -.90513    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11737e-05
Minuit parameter uncertainties:
  1  5.8523
  2  27.9069
  3  7.65238e-05
  4  8.24283
  5  2.18171e-05
  6  1.59088e-06
  7  14.4552
  8  6.71005
  9  104.348
  10  3.39018
  11  1.08655e-06
  12  4.99119
  13  1.86913
  14  0.00138493
  15  3.57256e-07
  16  23.0928
  17  0.284186
  18  0.078694
Done.

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

Extracting fit parameters...

4FGL J1728.0+1216
   Spectrum: PowerLaw
270    Prefactor:  3.520e+00  3.390e+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.067e+00  7.869e-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.312e-01  2.842e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.47
Ra Dec: 262.020 12.276
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 6.96e-08 +/- 6.69e-08
Energy Flux (Fixed Index): 2.13e-05 +/- 2.05e-05

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

Saving results to:
/scratch/kocevski/726994/likelihoodResults_339897601_340156801_4FGL_J1728.0+1216_daily_bin388.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): 102
logL (Free Index) = 10991.3213514
delta logL = 1.35035505558

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10991.2960346
delta logL = 1.37567189856

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .60746E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    5.0261       1.0000          .0000       10.000    
     3 'Normalizat'    .69876       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0940       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=   10991.30     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      286 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .60533E-01    .34585        .30382E-02    .30757E-02
   2  Index         5.0278        1.7817        .11686        .20844E-03
   3  Normalizat    .69867        .64374E-01    .13536        .49724E-04
   4  Prefactor     1.0941        .18706E-01    .37817E-01   -.53649E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.060533
  Index      = 5.02777
  Normalizat = 0.698674
  Prefactor  = 1.09405
 **********
 **   18 **HESSE 
 **********

 FCN=   10991.30     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      321 TOTAL
                     EDM=   .64E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .60533E-01    .86506        .13767E-03   -1.5659    
   2  Index         5.0278        3.3010        .42641E-02    .55540E-02
   3  Normalizat    .69867        .23447        .60064E-03   -1.0395    
   4  Prefactor     1.0941        .67316E-01    .14186E-03   -.89657    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.43326e-07
Minuit parameter uncertainties:
  1  0.457296
  2  3.60538
  3  0.234811
  4  0.0673215
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/726994': 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) = 10991.2960341
delta logL = 1.37567243532

Extracting fit parameters...

4FGL J1728.0+1216
   Spectrum: PowerLaw
270    Prefactor:  6.053e-02  4.573e-01  1.000e-04  1.000e+04 ( 1.000e-12)
271        Index:  5.028e+00  3.605e+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.094e+00  6.732e-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:  6.987e-01  2.348e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.58
Ra Dec: 262.020 12.276
Photon Index (Free Index): 5.03 +/- 3.61
Photon Flux (Free Index): 1.64e-07 +/- 8.83e-08
Energy Flux (Free Index): 2.17e-05 +/- 1.45e-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/726994/cmap_HighResolution_339897601_340156801_4FGL_J1728.0+1216_daily_bin388.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.53e-02', comment='SUCCESS', photon_flux='6.96e-08', energy_flux2='2.17e-05', photon_flux_error='6.69e-08', dlogl='1.38e+00', energy_flux='2.13e-05', photon_flux2='1.64e-07', job_status='DONE', time_completed='2021-09-17 12:05:58.407043', photon_index_error2='3.61', photon_index2='5.03', ts='1.47', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.97e-07', energy_flux_error2='1.45e-05', EG='0.83', time_epoch_completed='1631905558.41', return_code='0', job_id='726994', GAL2='1.09', EG2='0.70', return_code2='102', energy_flux_error='2.05e-05', photon_flux_error2='8.83e-08', ts2='4.58', photon_index='2.45' WHERE bin_id='388' 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@bullet0253>
Subject: Job 726994: <4FGL_J1728.0+1216_daily_bin388> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1728.0+1216_daily_bin388 262.02 12.2756 339897601 340156801 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 :                                   779.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             336.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            918 sec.

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

