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


Performing analysis on: 4FGL_J1728.0+1216_daily_bin246
RA = 262.02, Dec = 12.2756
tmin = 303091201, tmax = 303350401
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='726786', job_status='RUN', time_executed='2021-09-17 11:52:47.601156', time_epoch_executed='1631904767.6' WHERE source_name='4FGL J1728.0+1216' and cadence='daily' and bin_id='246'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/726786

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/726786/ft1_4FGL_J1728.0+1216_daily_bin246.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/726786/ft2_4FGL_J1728.0+1216_daily_bin246.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/726786/ft1_4FGL_J1728.0+1216_daily_bin246.fits outfile=/scratch/kocevski/726786/ft1_filteredMKT_4FGL_J1728.0+1216_daily_bin246.fits ra=262.02 dec=12.2756 rad=12.0 tmin=303091201.0 tmax=303350401.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.46
user 3.22
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/726786/ft1_filtered_4FGL_J1728.0+1216_daily_bin246.fits evtable="EVENTS" scfile=/scratch/kocevski/726786/ft2_4FGL_J1728.0+1216_daily_bin246.fits sctable="SC_DATA" expcube=/scratch/kocevski/726786/ltcube_303091201_303350401_4FGL_J1728.0+1216_daily_bin246.fits outfile=/scratch/kocevski/726786/expmap_303091201_303350401_4FGL_J1728.0+1216_daily_bin246.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/726786/ltcube_303091201_303350401_4FGL_J1728.0+1216_daily_bin246.fits
.....................!
real 190.44
user 185.30
sys 4.78

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/726786/ft1_filtered_4FGL_J1728.0+1216_daily_bin246.fits scfile=/scratch/kocevski/726786/ft2_4FGL_J1728.0+1216_daily_bin246.fits outfile=/scratch/kocevski/726786/cmap_303091201_303350401_4FGL_J1728.0+1216_daily_bin246.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/726786/ft1_filtered_4FGL_J1728.0+1216_daily_bin246.fits scfile=/scratch/kocevski/726786/ft2_4FGL_J1728.0+1216_daily_bin246.fits outfile=/scratch/kocevski/726786/cmap_HighResolution_303091201_303350401_4FGL_J1728.0+1216_daily_bin246.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.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .36571E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.592       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .57570E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.834       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .18796       1.0000         .10000E-03   10000.    
     6 'norm      '    1.8044       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    16.874       1.0000         .10000E-03   10000.    
     9 'Prefactor '    188.87       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.4806       1.0000         .10000E-03   10000.    
    11 'norm      '    14.099       1.0000         .10000E-03   10000.    
    12 'norm      '    .15256E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    .96824       1.0000         .10000E-03   10000.    
    14 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .47036       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1511       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=   11716.62     FROM MIGRAD    STATUS=CONVERGED    382 CALLS     1817 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.2141        .44742E-07** at limit **
   2  Prefactor     19.604        22.659       -.85404E-05    .21105E-03
   3  Prefactor     .10004E-03    348.49       -.42212E-04** at limit **
   4  Prefactor     14.839        8.9054        .11517E-06    .21633E-03
   5  Prefactor     .19451        3.9519       -.56295E-06    .89018E-04
   6  norm          1.8040        1.5600        .74437E-07    .32006E-03
   7  Prefactor     .10000E-03    4.6597        .47541E-08** at limit **
   8  norm          16.874        12.803        .22640E-06    .49225E-04
   9  Prefactor     188.89        91.860        .16590E-04    .14142E-03
  10  Prefactor     7.4773        3.8221       -.29318E-06   -.12733E-03
  11  norm          14.092        12.675       -.28957E-05    .44418E-03
  12  norm          .10000E-03    2.5304       -.14827E-07** at limit **
  13  norm          .97008        5.2143       -.39979E-05    .33897E-03
  14  norm          .10000E-03    34.852       -.97571E-06** at limit **
  15  norm          .10000E-03    .18404       -.65357E-08** at limit **
  16  Prefactor     .10000E-03    28.112        .36829E-06** at limit **
  17  Normalizat    .47101        .32676       -.37169E-05    .44988E-04
  18  Prefactor     1.1510        .91514E-01    .57973E-06    .10921E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 19.6037
  Prefactor  = 0.000100044
  Prefactor  = 14.8392
  Prefactor  = 0.194507
  norm       = 1.80401
  Prefactor  = 0.0001
  norm       = 16.8741
  Prefactor  = 188.893
  Prefactor  = 7.47731
  norm       = 14.0919
  norm       = 0.000100004
  norm       = 0.970076
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.47101
  Prefactor  = 1.15098
 **********
 **   18 **HESSE 
 **********

 FCN=   11716.62     FROM HESSE     STATUS=OK           258 CALLS     2075 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.635        .37067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.604        22.354        .90488E-04   -1.4822    
   3  Prefactor     .10004E-03    355.74        .42172E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.839        8.7730        .10399E-03   -1.4937    
   5  Prefactor     .19451        43.514        .41236E-02   -1.5620    
   6  norm          1.8040        1.5683        .12227E-03   -1.5439    
   7  Prefactor     .10000E-03    4.6686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          16.874        12.809        .97501E-04   -1.4886    
   9  Prefactor     188.89        94.267        .14692E-03   -1.2950    
  10  Prefactor     7.4773        3.7822        .13118E-03   -1.5161    
  11  norm          14.092        12.566        .10667E-03   -1.4957    
  12  norm          .10000E-03    2.8188        .57488E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .97008        23.857        .44895E-02   -1.5511    
  14  norm          .10000E-03    34.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .18742        .45313E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    28.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .47101        .29333        .71510E-03   -1.1378    
  18  Prefactor     1.1510        .85651E-01    .13944E-03   -.87853    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.82283e-09
Minuit parameter uncertainties:
  1  4.55026e-06
  2  22.3631
  3  0.00793819
  4  8.77378
  5  5.82133
  6  1.56836
  7  1.30757e-05
  8  12.811
  9  94.3425
  10  3.78237
  11  12.5684
  12  0.000212827
  13  9.6252
  14  3.72412e-05
  15  4.2026e-07
  16  7.26737e-06
  17  0.294296
  18  0.0856612
Done.

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

Extracting fit parameters...

4FGL J1728.0+1216
   Spectrum: PowerLaw
270    Prefactor:  7.477e+00  3.782e+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.151e+00  8.566e-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:  4.710e-01  2.943e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.51
Ra Dec: 262.020 12.276
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 1.48e-07 +/- 7.47e-08
Energy Flux (Fixed Index): 4.52e-05 +/- 2.29e-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) = 11716.2137936
delta logL = 0.404704293249

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11716.1853725
delta logL = 0.433125395217

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5883       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8734       1.0000          .0000       10.000    
     3 'Normalizat'    .42586       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1591       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=   11716.19     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      278 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5884        4.7213        .94336E-04    .40251E-04
   2  Index         2.8737        .59681        .46568E-02    .10127E-02
   3  Normalizat    .42578        .28927        .74923E-03    .51864E-04
   4  Prefactor     1.1591        .84825E-01    .13897E-03    .32330E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.58841
  Index      = 2.87367
  Normalizat = 0.425778
  Prefactor  = 1.15912
 **********
 **   18 **HESSE 
 **********

 FCN=   11716.19     FROM HESSE     STATUS=OK            25 CALLS      303 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5884        3.9943        .37734E-05   -1.5280    
   2  Index         2.8737        .50486        .93136E-03   -.43926    
   3  Normalizat    .42578        .28826        .29969E-04   -1.1599    
   4  Prefactor     1.1591        .84550E-01    .55588E-05   -.87599    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99636e-11
Minuit parameter uncertainties:
  1  3.9945
  2  0.50591
  3  0.289271
  4  0.0845598
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/726786': 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) = 11716.1853718
delta logL = 0.433126078868

Extracting fit parameters...

4FGL J1728.0+1216
   Spectrum: PowerLaw
270    Prefactor:  4.588e+00  3.994e+00  1.000e-04  1.000e+04 ( 1.000e-12)
271        Index:  2.874e+00  5.059e-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:  1.159e+00  8.456e-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:  4.258e-01  2.893e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.58
Ra Dec: 262.020 12.276
Photon Index (Free Index): 2.87 +/- 0.51
Photon Flux (Free Index): 1.85e-07 +/- 8.43e-08
Energy Flux (Free Index): 3.96e-05 +/- 1.83e-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/726786/cmap_HighResolution_303091201_303350401_4FGL_J1728.0+1216_daily_bin246.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.48e-07', energy_flux2='3.96e-05', photon_flux_error='7.47e-08', dlogl='4.33e-01', energy_flux='4.52e-05', photon_flux2='1.85e-07', job_status='DONE', time_completed='2021-09-17 12:05:26.636790', photon_index_error2='0.51', photon_index2='2.87', ts='6.51', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='1.83e-05', EG='0.47', time_epoch_completed='1631905526.64', return_code='0', job_id='726786', GAL2='1.16', EG2='0.43', return_code2='0', energy_flux_error='2.29e-05', photon_flux_error2='8.43e-08', ts2='7.58', photon_index='2.45' WHERE bin_id='246' AND source_name='4FGL J1728.0+1216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 12:05:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 726786: <4FGL_J1728.0+1216_daily_bin246> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1728.0+1216_daily_bin246 262.02 12.2756 303091201 303350401 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 :                                   749.28 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             284.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            900 sec.

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

