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


Performing analysis on: 4FGL_J1628.6+7706_daily_bin1229
RA = 247.154, Dec = 77.1099
tmin = 557884801, tmax = 558144001
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='557817', job_status='RUN', time_executed='2021-09-14 15:01:47.821207', time_epoch_executed='1631656907.82' WHERE source_name='4FGL J1628.6+7706' and cadence='daily' and bin_id='1229'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/557817

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/557817/ft1_4FGL_J1628.6+7706_daily_bin1229.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/557817/ft2_4FGL_J1628.6+7706_daily_bin1229.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/557817/ft1_4FGL_J1628.6+7706_daily_bin1229.fits outfile=/scratch/kocevski/557817/ft1_filteredMKT_4FGL_J1628.6+7706_daily_bin1229.fits ra=247.154 dec=77.1099 rad=12.0 tmin=557884801.0 tmax=558144001.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.45
user 3.14
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/557817/ft2_4FGL_J1628.6+7706_daily_bin1229.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/557817/ft2_4FGL_J1628.6+7706_daily_bin1229.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/557817/ft1_filteredMKT_4FGL_J1628.6+7706_daily_bin1229.fits evtable="EVENTS" outfile="/scratch/kocevski/557817/ft1_filtered_4FGL_J1628.6+7706_daily_bin1229.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.46
user 0.29
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/557817/ft1_filtered_4FGL_J1628.6+7706_daily_bin1229.fits" evtable="EVENTS" scfile=/scratch/kocevski/557817/ft2_4FGL_J1628.6+7706_daily_bin1229.fits sctable="SC_DATA" outfile=/scratch/kocevski/557817/ltcube_557884801_558144001_4FGL_J1628.6+7706_daily_bin1229.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/557817/ft2_4FGL_J1628.6+7706_daily_bin1229.fits
.....................!
real 12.11
user 11.75
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/557817/ft1_filtered_4FGL_J1628.6+7706_daily_bin1229.fits evtable="EVENTS" scfile=/scratch/kocevski/557817/ft2_4FGL_J1628.6+7706_daily_bin1229.fits sctable="SC_DATA" expcube=/scratch/kocevski/557817/ltcube_557884801_558144001_4FGL_J1628.6+7706_daily_bin1229.fits outfile=/scratch/kocevski/557817/expmap_557884801_558144001_4FGL_J1628.6+7706_daily_bin1229.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/557817/ltcube_557884801_558144001_4FGL_J1628.6+7706_daily_bin1229.fits
.....................!
real 151.38
user 147.86
sys 3.20

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

Setting source of interest to:
4FGL J1628.6+7706 @ 247.154 77.1099

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/557817/ft1_filtered_4FGL_J1628.6+7706_daily_bin1229.fits scfile=/scratch/kocevski/557817/ft2_4FGL_J1628.6+7706_daily_bin1229.fits outfile=/scratch/kocevski/557817/cmap_557884801_558144001_4FGL_J1628.6+7706_daily_bin1229.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=247.154 yref=77.1099 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.46
user 0.30
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/557817/ft1_filtered_4FGL_J1628.6+7706_daily_bin1229.fits scfile=/scratch/kocevski/557817/ft2_4FGL_J1628.6+7706_daily_bin1229.fits outfile=/scratch/kocevski/557817/cmap_HighResolution_557884801_558144001_4FGL_J1628.6+7706_daily_bin1229.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=247.154 yref=77.1099 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.45
user 0.31
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/557817/ft1_filtered_4FGL_J1628.6+7706_daily_bin1229.fits evtable="EVENTS" scfile=/scratch/kocevski/557817/ft2_4FGL_J1628.6+7706_daily_bin1229.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/557817/Model_4FGL_J1628.6+7706_daily_bin1229.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/557817/ft1_filtered_4FGL_J1628.6+7706_daily_bin1229.fits.....!
real 11.56
user 10.26
sys 1.05

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/557817/ft1_filtered_4FGL_J1628.6+7706_daily_bin1229.fits', '/scratch/kocevski/557817/ft2_4FGL_J1628.6+7706_daily_bin1229.fits', expMap='/scratch/kocevski/557817/expmap_557884801_558144001_4FGL_J1628.6+7706_daily_bin1229.fits', expCube='/scratch/kocevski/557817/ltcube_557884801_558144001_4FGL_J1628.6+7706_daily_bin1229.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/557817/Model_4FGL_J1628.6+7706_daily_bin1229.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1628.6+7706'

4FGL J1628.6+7706
   Spectrum: LogParabola
377         norm:  7.623e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
378        alpha:  1.958e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
379         beta:  9.152e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
380           Eb:  1.177e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/557817/ft1_filtered_4FGL_J1628.6+7706_daily_bin1229.fits
Spacecraft file(s): /scratch/kocevski/557817/ft2_4FGL_J1628.6+7706_daily_bin1229.fits
Exposure map: /scratch/kocevski/557817/expmap_557884801_558144001_4FGL_J1628.6+7706_daily_bin1229.fits
Exposure cube: /scratch/kocevski/557817/ltcube_557884801_558144001_4FGL_J1628.6+7706_daily_bin1229.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/557817/Model_4FGL_J1628.6+7706_daily_bin1229.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) = 53.9535220964

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    115.01       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .81311E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11234E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11439E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10775E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    713.07       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    96.565       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10463E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    27 'Prefactor '    .50491       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   53.92780     FROM MIGRAD    STATUS=CONVERGED    607 CALLS     3118 TOTAL
                     EDM=   .21E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          114.86        126.30       -.85959E-04    .25806E-04
   2  Prefactor     .10002E-03    1444.2       -.43327E-03** at limit **
   3  Prefactor     .10000E-03    205.28       -.85407E-04** at limit **
   4  Prefactor     .10000E-03    320.57        .76665E-04** at limit **
   5  Prefactor     .10000E-03    360.04        .14789E-03** at limit **
   6  Prefactor     .10000E-03    1868.9       -.76196E-03** at limit **
   7  Prefactor     .10000E-03    706.06        .13366E-03** at limit **
   8  Prefactor     .10000E-03    706.49        .13332E-03** at limit **
   9  Prefactor     .10000E-03    740.86        .10302E-03** at limit **
  10  Prefactor     .10000E-03    898.30       -.46577E-04** at limit **
  11  norm          .10000E-03    272.61       -.25327E-04** at limit **
  12  Prefactor     .10000E-03    2192.9       -.90943E-03** at limit **
  13  Prefactor     .10000E-03    665.55        .16696E-03** at limit **
  14  norm          .10000E-03    10.304        .12811E-07** at limit **
  15  Prefactor     .10000E-03    157.98        .12534E-03** at limit **
  16  Prefactor     .10000E-03    26.198        .49445E-07** at limit **
  17  Prefactor     .10000E-03    194.94       -.66228E-04** at limit **
  18  Prefactor     .10000E-03    208.68       -.90273E-04** at limit **
  19  Prefactor     713.54        755.74        .17947E-03   -.10765E-06
  20  norm          .10000E-03    36.262       -.49596E-07** at limit **
  21  norm          .10000E-03    5.1454        .24670E-07** at limit **
  22  norm          96.568        98.281        .11755E-05    .15189E-05
  23  Prefactor     .10000E-03    103.47       -.99005E-05** at limit **
  24  Prefactor     .10000E-03    1399.2       -.47625E-03** at limit **
  25  norm          .10000E-03    44.843        .11971E-06** at limit **
  26  Normalizat    .10000E-01    .47025        .12742E-05** at limit **
  27  Prefactor     .50491        .41608        .23951E-05    .41920E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 114.86
  Prefactor  = 0.000100017
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 713.541
  norm       = 0.0001
  norm       = 0.0001
  norm       = 96.5683
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.504913
 **********
 **   18 **HESSE 
 **********

 FCN=   53.92780     FROM HESSE     STATUS=OK           464 CALLS     3582 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          114.86        126.22        .18757E-03   -1.3560    
   2  Prefactor     .10002E-03    1443.8        .18449E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    205.24        .10356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    320.59        .12970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    360.13        .13755E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1869.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    706.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    706.51        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    740.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    898.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    272.61        .11950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2193.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    665.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    10.304        .23130E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    157.99        .90797E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    26.198        .36892E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    194.94        .10092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    208.68        .10444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     713.54        755.83        .77719E-04   -1.0300    
  20  norm          .10000E-03    36.261        .43410E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    5.1455        .16344E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          96.568        98.289        .40904E-04   -1.3739    
  23  Prefactor     .10000E-03    103.47        .73414E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    1399.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    44.856        .48279E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .10000E-01    .47055        .15743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .50491        .41585        .13702E-03   -1.1175    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.25136e-11
Minuit parameter uncertainties:
  1  126.521
  2  0.0101163
  3  0.00109124
  4  0.000209447
  5  0.000620636
  6  0.000147314
  7  2.69878e-05
  8  0.000118302
  9  0.000210934
  10  5.8998e-06
  11  3.43176e-06
  12  2.51883e-05
  13  3.31854e-06
  14  7.75835e-09
  15  1.15558e-06
  16  4.63394e-07
  17  7.70458e-07
  18  1.39954e-06
  19  767.139
  20  5.67416e-06
  21  5.62484e-07
  22  98.4547
  23  2.957e-06
  24  8.14118e-05
  25  1.33923e-05
  26  3.56522e-06
  27  0.418388
Done.

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

Extracting fit parameters...

4FGL J1628.6+7706
   Spectrum: LogParabola
377         norm:  1.000e-04  3.432e-06  1.000e-04  1.000e+04 ( 1.000e-13)
378        alpha:  1.958e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
379         beta:  9.152e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
380           Eb:  1.177e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  5.049e-01  4.184e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  1.000e-02  3.565e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 247.154 77.110
Photon Flux Upper Limit: 1.65e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/557817/likelihoodResults_557884801_558144001_4FGL_J1628.6+7706_daily_bin1229.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) = 53.9278218736
delta logL = -1.72843581154e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 53.9278050366
delta logL = -4.47386064195e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10208E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8050       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .50504       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6790E+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=   53.92780     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      261 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9997.2        .69858E-02** at limit **
   2  alpha         1.3527        4.2426        .16618        .52570E-08
   3  Normalizat    .10000E-01    .68254E-01    .15743E-02** at limit **
   4  Prefactor     .50492        .15741        .13702E-03    .70522E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 1.35273
  Normalizat = 0.01
  Prefactor  = 0.504919
 **********
 **   18 **HESSE 
 **********

 FCN=   53.92780     FROM HESSE     STATUS=OK            23 CALLS      284 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    420.54        .13972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.3527        3.7986        .33236E-01   -.47676    
   3  Normalizat    .10000E-01    .47055        .31486E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .50492        .41400        .27403E-04   -1.1175    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.0505e-10
Minuit parameter uncertainties:
  1  0.00106521
  2  2035.18
  3  2.5378e-05
  4  0.416505
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/557817': 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) = 53.9278045389
delta logL = 5.03233223981e-08

Extracting fit parameters...

4FGL J1628.6+7706
   Spectrum: LogParabola
377         norm:  1.000e-04  1.065e-03  1.000e-04  1.000e+04 ( 1.000e-13)
378        alpha:  1.353e+00  2.035e+03  0.000e+00  5.000e+00 ( 1.000e+00)
379         beta:  9.152e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
380           Eb:  1.177e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  5.049e-01  4.165e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  1.000e-02  2.538e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 247.154 77.110

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/557817/cmap_HighResolution_557884801_558144001_4FGL_J1628.6+7706_daily_bin1229.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-03', job_status='DONE', photon_flux_upper_limit='1.65e-06', time_completed='2021-09-14 15:06:26.124462', job_id='557817', GAL2='0.50', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631657186.12', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.50', dlogl='5.03e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='1229' AND source_name='4FGL J1628.6+7706' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 15:06:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 557817: <4FGL_J1628.6+7706_daily_bin1229> in cluster <slac> Done

Job <4FGL_J1628.6+7706_daily_bin1229> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 14 14:55:30 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 15:01:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 14 15:01:34 2021
Terminated at Tue Sep 14 15:06:26 2021
Results reported at Tue Sep 14 15:06:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1628.6+7706_daily_bin1229 247.154 77.1099 557884801 558144001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1628.6+7706 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   272.39 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             332.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   294 sec.
    Turnaround time :                            656 sec.

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

