/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 115 seconds before starting...
Proceeding.

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

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

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

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

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


Performing analysis on: 4FGL_J1728.0+1216_daily_bin204
RA = 262.02, Dec = 12.2756
tmin = 292204801, tmax = 292464001
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='726726', job_status='RUN', time_executed='2021-09-17 11:52:27.934595', time_epoch_executed='1631904747.93' WHERE source_name='4FGL J1728.0+1216' and cadence='daily' and bin_id='204'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/726726

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/726726/ft1_4FGL_J1728.0+1216_daily_bin204.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/726726/ft2_4FGL_J1728.0+1216_daily_bin204.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/726726/ft1_4FGL_J1728.0+1216_daily_bin204.fits outfile=/scratch/kocevski/726726/ft1_filteredMKT_4FGL_J1728.0+1216_daily_bin204.fits ra=262.02 dec=12.2756 rad=12.0 tmin=292204801.0 tmax=292464001.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 9.48
user 9.15
sys 0.30

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/726726/ft1_filtered_4FGL_J1728.0+1216_daily_bin204.fits evtable="EVENTS" scfile=/scratch/kocevski/726726/ft2_4FGL_J1728.0+1216_daily_bin204.fits sctable="SC_DATA" expcube=/scratch/kocevski/726726/ltcube_292204801_292464001_4FGL_J1728.0+1216_daily_bin204.fits outfile=/scratch/kocevski/726726/expmap_292204801_292464001_4FGL_J1728.0+1216_daily_bin204.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/726726/ltcube_292204801_292464001_4FGL_J1728.0+1216_daily_bin204.fits
.....................!
real 189.55
user 184.91
sys 4.27

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/726726/ft1_filtered_4FGL_J1728.0+1216_daily_bin204.fits scfile=/scratch/kocevski/726726/ft2_4FGL_J1728.0+1216_daily_bin204.fits outfile=/scratch/kocevski/726726/cmap_292204801_292464001_4FGL_J1728.0+1216_daily_bin204.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/726726/ft1_filtered_4FGL_J1728.0+1216_daily_bin204.fits scfile=/scratch/kocevski/726726/ft2_4FGL_J1728.0+1216_daily_bin204.fits outfile=/scratch/kocevski/726726/cmap_HighResolution_292204801_292464001_4FGL_J1728.0+1216_daily_bin204.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/726726/ft1_filtered_4FGL_J1728.0+1216_daily_bin204.fits evtable="EVENTS" scfile=/scratch/kocevski/726726/ft2_4FGL_J1728.0+1216_daily_bin204.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/726726/Model_4FGL_J1728.0+1216_daily_bin204.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/726726/ft1_filtered_4FGL_J1728.0+1216_daily_bin204.fits.....................!
real 77.32
user 75.93
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10504E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    29.876       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5924       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.1780       1.0000         .10000E-03   10000.    
     6 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.419       1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.3575       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .24161       1.0000         .10000E-03   10000.    
    11 'norm      '    18.843       1.0000         .10000E-03   10000.    
    12 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10145E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.5598       1.0000         .10000E-03   10000.    
    15 'norm      '    .10371E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11177E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0814       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .99235       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=   8200.043     FROM MIGRAD    STATUS=CONVERGED    425 CALLS     1822 TOTAL
                     EDM=   .81E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.2966        .18674E-06** at limit **
   2  Prefactor     .10000E-03    11.538       -.23011E-07** at limit **
   3  Prefactor     29.924        76.351        .81871E-05    .71991E-05
   4  Prefactor     1.5814        19.477        .10076E-04   -.39084E-04
   5  Prefactor     5.1712        13.602        .25987E-06    .52225E-05
   6  norm          .10000E-03    1.0628       -.81672E-08** at limit **
   7  Prefactor     20.460        26.049       -.18394E-05    .38222E-04
   8  norm          .10000E-03    4.8293        .26613E-08** at limit **
   9  Prefactor     3.6675        916.62        .61154E-04   -.46216E-05
  10  Prefactor     .23075        1.9893       -.42683E-06    .12408E-03
  11  norm          18.841        19.858       -.23817E-05   -.10741E-03
  12  norm          .10000E-03    3.0586       -.23236E-07** at limit **
  13  norm          .10000E-03    6.7464       -.60655E-06** at limit **
  14  norm          5.2988        364.19       -.43472E-04   -.12996E-04
  15  norm          .10000E-03    .43681       -.13480E-06** at limit **
  16  Prefactor     .10000E-03    23.483       -.71734E-07** at limit **
  17  Normalizat    1.0819        .33177       -.20276E-05    .73772E-04
  18  Prefactor     .99226        .85829E-01    .41377E-06    .15904E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.9239
  Prefactor  = 1.58138
  Prefactor  = 5.1712
  norm       = 0.0001
  Prefactor  = 20.4595
  norm       = 0.0001
  Prefactor  = 3.66746
  Prefactor  = 0.230749
  norm       = 18.8407
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.29884
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.0819
  Prefactor  = 0.992256
 **********
 **   18 **HESSE 
 **********

 FCN=   8200.043     FROM HESSE     STATUS=OK           246 CALLS     2068 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.4949        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     29.924        76.347        .73301E-04   -1.4613    
   4  Prefactor     1.5814        19.627        .16811E-02   -1.5456    
   5  Prefactor     5.1712        13.590        .17666E-03   -1.5253    
   6  norm          .10000E-03    1.0657        .91157E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     20.460        26.026        .88637E-04   -1.4803    
   8  norm          .10000E-03    4.8311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.6675        919.72        .19296E-03   -1.5325    
  10  Prefactor     .23075        15.772        .22808E-02   -1.5612    
  11  norm          18.841        19.775        .92268E-04   -1.4840    
  12  norm          .10000E-03    3.0653        .15466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.7786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.2988        363.20        .17039E-03   -1.5248    
  15  norm          .10000E-03    .92637        .11568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    23.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.0819        .36876        .51673E-03   -.90335    
  18  Prefactor     .99226        .96637E-01    .14430E-03   -.92988    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.32146e-10
Minuit parameter uncertainties:
  1  2.08374e-05
  2  1.44314e-06
  3  76.5975
  4  11.1464
  5  13.5985
  6  1.2886e-07
  7  26.0402
  8  1.12496e-06
  9  118.036
  10  3.8157
  11  19.7819
  12  6.71254e-07
  13  4.86869e-05
  14  88.3021
  15  6.85317e-06
  16  6.36278e-06
  17  0.369644
  18  0.0966537
Done.

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

Extracting fit parameters...

4FGL J1728.0+1216
   Spectrum: PowerLaw
270    Prefactor:  2.307e-01  3.816e+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.923e-01  9.665e-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.082e+00  3.696e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/726726/likelihoodResults_292204801_292464001_4FGL_J1728.0+1216_daily_bin204.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) = 8199.45935799
delta logL = 0.58348456282

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8199.35929937
delta logL = 0.683543183974

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27535E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    5.3319       1.0000          .0000       10.000    
     3 'Normalizat'    .96116       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0103       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=   8199.359     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      263 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27502E-01    .36126        .29978E-02    .84545E-02
   2  Index         5.3328        2.5520        .11478        .22294E-03
   3  Normalizat    .96123        .67217E-01    .12262        .45187E-04
   4  Prefactor     1.0103        .18162E-01    .32369E-01    .22807E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.027502
  Index      = 5.33278
  Normalizat = 0.961226
  Prefactor  = 1.0103
 **********
 **   18 **HESSE 
 **********

 FCN=   8199.359     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      298 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27502E-01    1.1235        .13725E-03   -1.5675    
   2  Index         5.3328        7.4461        .61312E-02    .66605E-01
   3  Normalizat    .96123        .25566        .54395E-03   -.94341    
   4  Prefactor     1.0103        .68203E-01    .14304E-03   -.92387    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.99117e-10
Minuit parameter uncertainties:
  1  0.350923
  2  6.05901
  3  0.255986
  4  0.0682091
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/726726': 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) = 8199.35929903
delta logL = 0.683543521453

Extracting fit parameters...

4FGL J1728.0+1216
   Spectrum: PowerLaw
270    Prefactor:  2.750e-02  3.509e-01  1.000e-04  1.000e+04 ( 1.000e-12)
271        Index:  5.333e+00  6.059e+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.010e+00  6.821e-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.612e-01  2.560e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.48
Ra Dec: 262.020 12.276
Photon Index (Free Index): 5.33 +/- 6.06
Photon Flux (Free Index): 1.40e-07 +/- 1.22e-07
Energy Flux (Free Index): 1.82e-05 +/- 1.88e-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/726726/cmap_HighResolution_292204801_292464001_4FGL_J1728.0+1216_daily_bin204.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.43e-02', comment='SUCCESS', energy_flux2='1.82e-05', dlogl='6.84e-01', photon_flux2='1.40e-07', job_status='DONE', time_completed='2021-09-17 12:04:23.855457', photon_index_error2='6.06', photon_index2='5.33', ts='0.00', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.84e-07', energy_flux_error2='1.88e-05', EG='1.08', time_epoch_completed='1631905463.86', return_code='0', job_id='726726', GAL2='1.01', EG2='0.96', return_code2='102', photon_flux_error2='1.22e-07', ts2='1.48', photon_index='2.45' WHERE bin_id='204' AND source_name='4FGL J1728.0+1216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 12:04:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 726726: <4FGL_J1728.0+1216_daily_bin204> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1728.0+1216_daily_bin204 262.02 12.2756 292204801 292464001 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 :                                   693.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             300.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            842 sec.

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

