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


Performing analysis on: 4FGL_J1728.3+5013_daily_bin1202
RA = 262.078, Dec = 50.2267
tmin = 550886401, tmax = 551145601
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='741682', job_status='RUN', time_executed='2021-09-17 12:44:01.854382', time_epoch_executed='1631907841.85' WHERE source_name='4FGL J1728.3+5013' and cadence='daily' and bin_id='1202'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/741682

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/741682/ft1_4FGL_J1728.3+5013_daily_bin1202.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/741682/ft2_4FGL_J1728.3+5013_daily_bin1202.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/741682/ft1_4FGL_J1728.3+5013_daily_bin1202.fits outfile=/scratch/kocevski/741682/ft1_filteredMKT_4FGL_J1728.3+5013_daily_bin1202.fits ra=262.078 dec=50.2267 rad=12.0 tmin=550886401.0 tmax=551145601.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.74
user 3.54
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/741682/ft2_4FGL_J1728.3+5013_daily_bin1202.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/741682/ft2_4FGL_J1728.3+5013_daily_bin1202.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/741682/ft1_filteredMKT_4FGL_J1728.3+5013_daily_bin1202.fits evtable="EVENTS" outfile="/scratch/kocevski/741682/ft1_filtered_4FGL_J1728.3+5013_daily_bin1202.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/741682/ft1_filtered_4FGL_J1728.3+5013_daily_bin1202.fits" evtable="EVENTS" scfile=/scratch/kocevski/741682/ft2_4FGL_J1728.3+5013_daily_bin1202.fits sctable="SC_DATA" outfile=/scratch/kocevski/741682/ltcube_550886401_551145601_4FGL_J1728.3+5013_daily_bin1202.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/741682/ft2_4FGL_J1728.3+5013_daily_bin1202.fits
.....................!
real 12.02
user 11.67
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/741682/ft1_filtered_4FGL_J1728.3+5013_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/741682/ft2_4FGL_J1728.3+5013_daily_bin1202.fits sctable="SC_DATA" expcube=/scratch/kocevski/741682/ltcube_550886401_551145601_4FGL_J1728.3+5013_daily_bin1202.fits outfile=/scratch/kocevski/741682/expmap_550886401_551145601_4FGL_J1728.3+5013_daily_bin1202.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/741682/ltcube_550886401_551145601_4FGL_J1728.3+5013_daily_bin1202.fits
.....................!
real 190.13
user 185.50
sys 4.31

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
Added 203 point sources and 0 extended sources

Setting source of interest to:
4FGL J1728.3+5013 @ 262.078 50.2267

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/741682/ft1_filtered_4FGL_J1728.3+5013_daily_bin1202.fits scfile=/scratch/kocevski/741682/ft2_4FGL_J1728.3+5013_daily_bin1202.fits outfile=/scratch/kocevski/741682/cmap_550886401_551145601_4FGL_J1728.3+5013_daily_bin1202.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.078 yref=50.2267 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/741682/ft1_filtered_4FGL_J1728.3+5013_daily_bin1202.fits scfile=/scratch/kocevski/741682/ft2_4FGL_J1728.3+5013_daily_bin1202.fits outfile=/scratch/kocevski/741682/cmap_HighResolution_550886401_551145601_4FGL_J1728.3+5013_daily_bin1202.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.078 yref=50.2267 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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/741682/ft1_filtered_4FGL_J1728.3+5013_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/741682/ft2_4FGL_J1728.3+5013_daily_bin1202.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/741682/Model_4FGL_J1728.3+5013_daily_bin1202.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 GAL_V02
Working on...
/scratch/kocevski/741682/ft1_filtered_4FGL_J1728.3+5013_daily_bin1202.fits......................!
real 27.61
user 26.37
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/741682/ft1_filtered_4FGL_J1728.3+5013_daily_bin1202.fits', '/scratch/kocevski/741682/ft2_4FGL_J1728.3+5013_daily_bin1202.fits', expMap='/scratch/kocevski/741682/expmap_550886401_551145601_4FGL_J1728.3+5013_daily_bin1202.fits', expCube='/scratch/kocevski/741682/ltcube_550886401_551145601_4FGL_J1728.3+5013_daily_bin1202.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/741682/Model_4FGL_J1728.3+5013_daily_bin1202.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1728.3+5013'

4FGL J1728.3+5013
   Spectrum: PowerLaw
341    Prefactor:  1.850e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
342        Index:  1.775e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
343        Scale:  3.056e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/741682/ft1_filtered_4FGL_J1728.3+5013_daily_bin1202.fits
Spacecraft file(s): /scratch/kocevski/741682/ft2_4FGL_J1728.3+5013_daily_bin1202.fits
Exposure map: /scratch/kocevski/741682/expmap_550886401_551145601_4FGL_J1728.3+5013_daily_bin1202.fits
Exposure cube: /scratch/kocevski/741682/ltcube_550886401_551145601_4FGL_J1728.3+5013_daily_bin1202.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/741682/Model_4FGL_J1728.3+5013_daily_bin1202.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) = 2063.83524194

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .66351       1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10128E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.7518       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11123E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.0036       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10257E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.2977       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.278       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    249.98       1.0000         .10000E-03   10000.    
    21 'norm      '    10.341       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .15730       1.0000         .10000E-03   10000.    
    24 'Prefactor '    46.530       1.0000         .10000E-03   10000.    
    25 'Prefactor '    59.552       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10214E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    17.785       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    11.085       1.0000         .10000E-03   10000.    
    31 'norm      '    9.1999       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10881E-03   1.0000         .10000E-03   10000.    
    33 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    34 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    35 'Normalizat'    1.5723       1.0000         .10000E-01   10.000    
    36 'Prefactor '    .40085       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6670E+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=   2063.822     FROM MIGRAD    STATUS=CONVERGED   1835 CALLS     6155 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .68426        46.450        .27785E-02    .55834E-04
   2  norm          .10000E-03    14.363        .16818E-02** at limit **
   3  norm          .10000E-03    19.511        .18142E-02** at limit **
   4  Prefactor     1.7529        4.6869        .15613E-03    .14272E-03
   5  Prefactor     .10000E-03    12.418        .15567E-02** at limit **
   6  Prefactor     .10000E-03    3.4718        .82288E-03** at limit **
   7  Prefactor     .10000E-03    6.4151        .16227E-02** at limit **
   8  Prefactor     .10000E-03    7.8591        .12436E-02** at limit **
   9  Prefactor     .10000E-03    10.877        .14635E-02** at limit **
  10  norm          .10000E-03    .70780        .37000E-03** at limit **
  11  Prefactor     .10000E-03    4.3950        .92937E-03** at limit **
  12  norm          2.0037        1.5323        .47436E-04    .33493E-03
  13  Prefactor     .10000E-03    8.0789        .12567E-02** at limit **
  14  norm          .10000E-03    10.848        .14593E-02** at limit **
  15  Prefactor     .10000E-03    11.830        .15218E-02** at limit **
  16  norm          3.2991        4.6555        .10576E-03    .10083E-03
  17  Prefactor     10.277        7.6758        .10524E-03    .79938E-05
  18  Prefactor     .10000E-03    63.807        .18142E-02** at limit **
  19  norm          .10000E-03    7.5320        .12149E-02** at limit **
  20  Prefactor     249.95        179.45        .12811E-03    .37281E-04
  21  norm          10.345        10.249        .12460E-03   -.42427E-04
  22  Prefactor     .10000E-03    127.44        .18142E-02** at limit **
  23  Prefactor     .97389E-01    665.49        .25989E-02    .24232E-04
  24  Prefactor     47.161        227.90        .29390E-03    .48352E-05
  25  Prefactor     59.493        178.47        .51991E-04   -.15307E-06
  26  Prefactor     .10000E-03    155.57        .18142E-02** at limit **
  27  Prefactor     17.777        24.925        .94972E-04    .36151E-04
  28  Prefactor     .10000E-03    35.075        .18142E-02** at limit **
  29  norm          .10000E-03    6.4145        .11233E-02** at limit **
  30  Prefactor     11.081        37.379        .12033E-03   -.32642E-04
  31  norm          9.1994        19.156        .13213E-03    .18068E-04
  32  Prefactor     .10000E-03    21.287        .18142E-02** at limit **
  33  norm          .10000E-03    6.5291        .11334E-02** at limit **
  34  norm          .10000E-03    10.076        .14086E-02** at limit **
  35  Normalizat    1.5718        .45212        .22968E-03    .13689E-03
  36  Prefactor     .40113        .28041        .29951E-03    .13430E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.684256
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.75291
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.00368
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.29912
  Prefactor  = 10.2772
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 249.948
  norm       = 10.3451
  Prefactor  = 0.000100003
  Prefactor  = 0.097389
  Prefactor  = 47.1613
  Prefactor  = 59.4934
  Prefactor  = 0.000100003
  Prefactor  = 17.7775
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.0809
  norm       = 9.19945
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.57182
  Prefactor  = 0.401127
 **********
 **   18 **HESSE 
 **********

 FCN=   2063.822     FROM HESSE     STATUS=OK           779 CALLS     6934 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .68426        45.963        .11114E-03   -1.5543    
   2  norm          .10000E-03    14.363        .33635E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    19.511        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.7529        4.6857        .62453E-05   -1.5443    
   5  Prefactor     .10000E-03    12.420        .31135E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.4720        .16458E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.4358        .32454E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.8592        .24873E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.877        .29269E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .70782        .74000E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.3951        .18587E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.0037        1.5319        .18974E-05   -1.5425    
  13  Prefactor     .10000E-03    8.0799        .25134E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    10.849        .29186E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.832        .30436E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.2991        4.6529        .42305E-05   -1.5345    
  17  Prefactor     10.277        7.6694        .42097E-05   -1.5067    
  18  Prefactor     .10000E-03    63.808        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    7.5324        .24298E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     249.95        179.32        .25622E-04   -1.2533    
  21  norm          10.345        10.154        .49840E-05   -1.5065    
  22  Prefactor     .10000E-03    127.44        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .97389E-01    452.77        .10395E-03   -1.5646    
  24  Prefactor     47.161        170.89        .11756E-04   -1.4333    
  25  Prefactor     59.493        177.84        .10398E-04   -1.4164    
  26  Prefactor     .10000E-03    155.58        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     17.777        24.917        .37989E-05   -1.4864    
  28  Prefactor     .10000E-03    35.076        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    6.4146        .22466E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     11.081        37.337        .48133E-05   -1.5042    
  31  norm          9.1994        19.146        .52853E-05   -1.5101    
  32  Prefactor     .10000E-03    21.288        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  norm          .10000E-03    6.5292        .22669E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  norm          .10000E-03    10.076        .28172E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Normalizat    1.5718        .44549        .45936E-04   -.75780    
  36  Prefactor     .40113        .27888        .11980E-04   -1.1675    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.5063e-10
Minuit parameter uncertainties:
  1  11.2243
  2  1.71243e-06
  3  8.29899e-06
  4  4.68663
  5  3.08346e-05
  6  3.68963e-06
  7  0.000235905
  8  5.66892e-06
  9  2.32408e-06
  10  5.00765e-06
  11  2.08339e-05
  12  1.53197
  13  4.05046e-05
  14  6.16123e-05
  15  6.1904e-05
  16  4.65345
  17  7.67009
  18  2.44302e-05
  19  6.45056e-05
  20  179.715
  21  10.1557
  22  0.00117873
  23  13.3763
  24  172.715
  25  179.466
  26  0.00141353
  27  24.9317
  28  0.000259524
  29  1.64733e-05
  30  37.4154
  31  19.1591
  32  6.20722e-05
  33  1.44558e-05
  34  2.57442e-06
  35  0.446621
  36  0.279832
Done.

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

Extracting fit parameters...

4FGL J1728.3+5013
   Spectrum: PowerLaw
341    Prefactor:  1.028e+01  7.670e+00  1.000e-04  1.000e+04 ( 1.000e-13)
342        Index:  1.775e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
343        Scale:  3.056e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
664    Prefactor:  4.011e-01  2.798e-01  0.000e+00  1.000e+01 ( 1.000e+00)
665        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
666        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
663   Normalization:  1.572e+00  4.466e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.17
Ra Dec: 262.078 50.227
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 5.72e-08 +/- 4.27e-08
Energy Flux (Fixed Index): 7.37e-05 +/- 5.50e-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) = 2062.55136464
delta logL = 1.27021400425

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2062.52930162
delta logL = 1.29227702277

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.057       1.0000         .10000E-03   10000.    
     2 'Index     '    1.0200       1.0000          .0000       10.000    
     3 'Normalizat'    1.6009       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .39302       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6670E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2062.529     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      208 TOTAL
                     EDM=   .49E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.061        8.8867        .28842E-02   -.44409E-04
   2  Index         1.0200        .40297        .13484       -.57196E-05
   3  Normalizat    1.6010        .34028        .51544E-01   -.43405E-06
   4  Prefactor     .39302        .23967        .68285E-01    .13323E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.0607
  Index      = 1.02005
  Normalizat = 1.60095
  Prefactor  = 0.393017
 **********
 **   18 **HESSE 
 **********

 FCN=   2062.529     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .37E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.061        9.7604        .11303E-03   -1.5013    
   2  Index         1.0200        .44762        .58915E-03   -.92064    
   3  Normalizat    1.6010        .38565        .22787E-03   -.74980    
   4  Prefactor     .39302        .27100        .30233E-03   -1.1717    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.71267e-14
Minuit parameter uncertainties:
  1  9.76166
  2  0.449264
  3  0.386368
  4  0.27189
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/741682': 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) = 2062.52930155
delta logL = 1.2922771002

Extracting fit parameters...

4FGL J1728.3+5013
   Spectrum: PowerLaw
341    Prefactor:  1.206e+01  9.762e+00  1.000e-04  1.000e+04 ( 1.000e-13)
342        Index:  1.020e+00  4.493e-01  0.000e+00  1.000e+01 (-1.000e+00)
343        Scale:  3.056e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
664    Prefactor:  3.930e-01  2.719e-01  0.000e+00  1.000e+01 ( 1.000e+00)
665        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
666        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
663   Normalization:  1.601e+00  3.864e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.75
Ra Dec: 262.078 50.227
Photon Index (Free Index): 1.02 +/- 0.45
Photon Flux (Free Index): 2.55e-08 +/- 2.08e-08
Energy Flux (Free Index): 3.51e-04 +/- 3.73e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/741682/cmap_HighResolution_550886401_551145601_4FGL_J1728.3+5013_daily_bin1202.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.72e-08', energy_flux2='3.51e-04', photon_flux_error='4.27e-08', dlogl='1.29e+00', energy_flux='7.37e-05', photon_flux2='2.55e-08', job_status='DONE', time_completed='2021-09-17 12:53:42.426310', photon_index_error2='0.45', photon_index2='1.02', ts='7.17', fit_tolerance='1e-08', GAL='0.40', photon_index_error='0.00', energy_flux_error2='3.73e-04', EG='1.57', time_epoch_completed='1631908422.43', return_code='0', job_id='741682', GAL2='0.39', EG2='1.60', return_code2='0', energy_flux_error='5.50e-05', photon_flux_error2='2.08e-08', ts2='9.75', photon_index='1.78' WHERE bin_id='1202' AND source_name='4FGL J1728.3+5013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 12:53:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 741682: <4FGL_J1728.3+5013_daily_bin1202> in cluster <slac> Done

Job <4FGL_J1728.3+5013_daily_bin1202> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 17 12:40:21 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 12:40: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:40:22 2021
Terminated at Fri Sep 17 12:53:43 2021
Results reported at Fri Sep 17 12:53:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1728.3+5013_daily_bin1202 262.078 50.2267 550886401 551145601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1728.3+5013 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   579.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             258.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   800 sec.
    Turnaround time :                            802 sec.

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

