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


Performing analysis on: 4FGL_J1728.0+1216_daily_bin775
RA = 262.02, Dec = 12.2756
tmin = 440208001, tmax = 440467201
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='730880', job_status='RUN', time_executed='2021-09-17 12:07:12.463699', time_epoch_executed='1631905632.46' WHERE source_name='4FGL J1728.0+1216' and cadence='daily' and bin_id='775'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/730880

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/730880/ft1_4FGL_J1728.0+1216_daily_bin775.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/730880/ft2_4FGL_J1728.0+1216_daily_bin775.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/730880/ft1_4FGL_J1728.0+1216_daily_bin775.fits outfile=/scratch/kocevski/730880/ft1_filteredMKT_4FGL_J1728.0+1216_daily_bin775.fits ra=262.02 dec=12.2756 rad=12.0 tmin=440208001.0 tmax=440467201.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.49
user 3.21
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/730880/ft1_filtered_4FGL_J1728.0+1216_daily_bin775.fits evtable="EVENTS" scfile=/scratch/kocevski/730880/ft2_4FGL_J1728.0+1216_daily_bin775.fits sctable="SC_DATA" expcube=/scratch/kocevski/730880/ltcube_440208001_440467201_4FGL_J1728.0+1216_daily_bin775.fits outfile=/scratch/kocevski/730880/expmap_440208001_440467201_4FGL_J1728.0+1216_daily_bin775.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/730880/ltcube_440208001_440467201_4FGL_J1728.0+1216_daily_bin775.fits
.....................!
real 193.64
user 188.61
sys 4.33

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/730880/ft1_filtered_4FGL_J1728.0+1216_daily_bin775.fits scfile=/scratch/kocevski/730880/ft2_4FGL_J1728.0+1216_daily_bin775.fits outfile=/scratch/kocevski/730880/cmap_440208001_440467201_4FGL_J1728.0+1216_daily_bin775.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.54
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/730880/ft1_filtered_4FGL_J1728.0+1216_daily_bin775.fits scfile=/scratch/kocevski/730880/ft2_4FGL_J1728.0+1216_daily_bin775.fits outfile=/scratch/kocevski/730880/cmap_HighResolution_440208001_440467201_4FGL_J1728.0+1216_daily_bin775.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6436       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.597       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .38949       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.482       1.0000         .10000E-03   10000.    
     6 'norm      '    6.5903       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.7566       1.0000         .10000E-03   10000.    
     8 'norm      '    .10120E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.4927       1.0000         .10000E-03   10000.    
    11 'norm      '    7.5368       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    73.211       1.0000         .10000E-03   10000.    
    15 'norm      '    .93305       1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.880       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.3327       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .97961       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=   12676.88     FROM MIGRAD    STATUS=CONVERGED    379 CALLS     1755 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6440        .73518       -.64818E-08   -.61076E-03
   2  Prefactor     11.506        33.674       -.23026E-05    .83720E-06
   3  Prefactor     .10000E-03    33.868        .41104E-05** at limit **
   4  Prefactor     .30774        3.4947       -.12261E-05    .69159E-03
   5  Prefactor     11.474        13.539        .26140E-05    .33824E-04
   6  norm          6.5894        2.9604       -.32387E-07    .33887E-04
   7  Prefactor     4.7583        9.6153        .51972E-05    .57950E-04
   8  norm          .10000E-03    9.1170       -.42462E-07** at limit **
   9  Prefactor     .10000E-03    27.288        .21749E-05** at limit **
  10  Prefactor     1.4932        1.6912       -.12168E-06   -.34433E-04
  11  norm          7.5379        8.0742        .33486E-05    .10276E-04
  12  norm          .10000E-03    1.3215        .20772E-07** at limit **
  13  norm          .10000E-03    7.3108       -.11750E-06** at limit **
  14  norm          73.213        61.219        .10950E-05   -.36292E-06
  15  norm          .93361        .93959        .75025E-07    .36361E-04
  16  Prefactor     25.878        34.069       -.16640E-05   -.21055E-05
  17  Normalizat    1.3337        .27327       -.80434E-07    .12931E-03
  18  Prefactor     .97939        .71979E-01   -.43926E-06    .42950E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.64401
  Prefactor  = 11.5065
  Prefactor  = 0.0001
  Prefactor  = 0.30774
  Prefactor  = 11.4739
  norm       = 6.5894
  Prefactor  = 4.75828
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.49317
  norm       = 7.53794
  norm       = 0.0001
  norm       = 0.0001
  norm       = 73.2134
  norm       = 0.933609
  Prefactor  = 25.8783
  Normalizat = 1.33372
  Prefactor  = 0.979394
 **********
 **   18 **HESSE 
 **********

 FCN=   12676.88     FROM HESSE     STATUS=OK           250 CALLS     2005 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6440        5.6047        .16475E-02   -1.5452    
   2  Prefactor     11.506        33.852        .11764E-03   -1.5029    
   3  Prefactor     .10000E-03    33.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .30774        47.783        .38116E-02   -1.5597    
   5  Prefactor     11.474        13.583        .11823E-03   -1.5030    
   6  norm          6.5894        2.9617        .62859E-03   -1.5195    
   7  Prefactor     4.7583        9.6069        .18449E-03   -1.5272    
   8  norm          .10000E-03    9.2424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    27.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.4932        1.6826        .15022E-03   -1.5464    
  11  norm          7.5379        8.0708        .14608E-03   -1.5159    
  12  norm          .10000E-03    1.3335        .12639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    7.4584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          73.213        61.224        .46922E-04   -1.3995    
  15  norm          .93361        .91363        .10303E-03   -1.5515    
  16  Prefactor     25.878        34.087        .78745E-04   -1.4690    
  17  Normalizat    1.3337        .31825        .48852E-03   -.82565    
  18  Prefactor     .97939        .83228E-01    .15214E-03   -.93420    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16379e-08
Minuit parameter uncertainties:
  1  5.60649
  2  33.9088
  3  1.19309e-05
  4  7.67431
  5  13.5864
  6  2.96179
  7  9.61005
  8  4.11077e-05
  9  4.54486e-05
  10  1.68268
  11  8.07195
  12  5.18445e-07
  13  3.46547e-05
  14  61.2765
  15  0.913639
  16  34.1126
  17  0.318718
  18  0.0832387
Done.

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

Extracting fit parameters...

4FGL J1728.0+1216
   Spectrum: PowerLaw
270    Prefactor:  1.493e+00  1.683e+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.794e-01  8.324e-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.334e+00  3.187e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.87
Ra Dec: 262.020 12.276
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 2.95e-08 +/- 3.32e-08
Energy Flux (Fixed Index): 9.03e-06 +/- 1.02e-05

TS (Fixed Index): 1.87
Ra Dec: 262.020 12.276
Photon Flux Upper Limit: 1.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/730880/likelihoodResults_440208001_440467201_4FGL_J1728.0+1216_daily_bin775.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) = 12676.1656527
delta logL = 0.709974289401

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12676.1615127
delta logL = 0.714114337146

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5891       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5639       1.0000          .0000       10.000    
     3 'Normalizat'    1.3527       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97707       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=   12676.16     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      210 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5899        1.7588        .84164E-02   -.45585E-03
   2  Index         1.5641        .48444        .29119       -.89675E-04
   3  Normalizat    1.3525        .25630        .10955        .44452E-04
   4  Prefactor     .97715        .70035E-01    .34463E-01   -.16741E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.5899
  Index      = 1.56413
  Normalizat = 1.35246
  Prefactor  = 0.977146
 **********
 **   18 **HESSE 
 **********

 FCN=   12676.16     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5899        1.9517        .14679E-03   -1.5456    
   2  Index         1.5641        .65898        .14056E-01   -.75759    
   3  Normalizat    1.3525        .29304        .48562E-03   -.82014    
   4  Prefactor     .97715        .80429E-01    .15228E-03   -.93495    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.31719e-09
Minuit parameter uncertainties:
  1  1.95179
  2  0.662649
  3  0.293398
  4  0.0804384
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/730880': 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) = 12676.1615121
delta logL = 0.714114941824

Extracting fit parameters...

4FGL J1728.0+1216
   Spectrum: PowerLaw
270    Prefactor:  1.590e+00  1.952e+00  1.000e-04  1.000e+04 ( 1.000e-12)
271        Index:  1.564e+00  6.626e-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.771e-01  8.044e-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.352e+00  2.934e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.30
Ra Dec: 262.020 12.276
Photon Index (Free Index): 1.56 +/- 0.66
Photon Flux (Free Index): 1.02e-08 +/- 1.53e-08
Energy Flux (Free Index): 2.59e-05 +/- 4.08e-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/730880/cmap_HighResolution_440208001_440467201_4FGL_J1728.0+1216_daily_bin775.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.58e-03', comment='SUCCESS', photon_flux='2.95e-08', energy_flux2='2.59e-05', photon_flux_error='3.32e-08', dlogl='7.14e-01', energy_flux='9.03e-06', photon_flux2='1.02e-08', job_status='DONE', time_completed='2021-09-17 12:21:13.581367', photon_index_error2='0.66', photon_index2='1.56', ts='1.87', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.24e-07', energy_flux_error2='4.08e-05', EG='1.33', time_epoch_completed='1631906473.58', return_code='0', job_id='730880', GAL2='0.98', EG2='1.35', return_code2='0', energy_flux_error='1.02e-05', photon_flux_error2='1.53e-08', ts2='3.30', photon_index='2.45' WHERE bin_id='775' AND source_name='4FGL J1728.0+1216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 12:21:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 730880: <4FGL_J1728.0+1216_daily_bin775> in cluster <slac> Done

Job <4FGL_J1728.0+1216_daily_bin775> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 17 12:05:20 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 12:05:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 17 12:05:22 2021
Terminated at Fri Sep 17 12:21:14 2021
Results reported at Fri Sep 17 12:21:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1728.0+1216_daily_bin775 262.02 12.2756 440208001 440467201 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 :                                   840.35 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             296.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   951 sec.
    Turnaround time :                            954 sec.

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

