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


Performing analysis on: 4FGL_J1628.6+7706_daily_bin810
RA = 247.154, Dec = 77.1099
tmin = 449280001, tmax = 449539201
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='551814', job_status='RUN', time_executed='2021-09-14 14:42:00.786592', time_epoch_executed='1631655720.79' WHERE source_name='4FGL J1628.6+7706' and cadence='daily' and bin_id='810'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/551814

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/551814/ft1_4FGL_J1628.6+7706_daily_bin810.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/551814/ft2_4FGL_J1628.6+7706_daily_bin810.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/551814/ft1_4FGL_J1628.6+7706_daily_bin810.fits outfile=/scratch/kocevski/551814/ft1_filteredMKT_4FGL_J1628.6+7706_daily_bin810.fits ra=247.154 dec=77.1099 rad=12.0 tmin=449280001.0 tmax=449539201.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 6.15
user 5.67
sys 0.30

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/551814/ft2_4FGL_J1628.6+7706_daily_bin810.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/551814/ft1_filteredMKT_4FGL_J1628.6+7706_daily_bin810.fits evtable="EVENTS" outfile="/scratch/kocevski/551814/ft1_filtered_4FGL_J1628.6+7706_daily_bin810.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.52
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/551814/ft1_filtered_4FGL_J1628.6+7706_daily_bin810.fits" evtable="EVENTS" scfile=/scratch/kocevski/551814/ft2_4FGL_J1628.6+7706_daily_bin810.fits sctable="SC_DATA" outfile=/scratch/kocevski/551814/ltcube_449280001_449539201_4FGL_J1628.6+7706_daily_bin810.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/551814/ft2_4FGL_J1628.6+7706_daily_bin810.fits
.....................!
real 14.63
user 14.17
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/551814/ft1_filtered_4FGL_J1628.6+7706_daily_bin810.fits evtable="EVENTS" scfile=/scratch/kocevski/551814/ft2_4FGL_J1628.6+7706_daily_bin810.fits sctable="SC_DATA" expcube=/scratch/kocevski/551814/ltcube_449280001_449539201_4FGL_J1628.6+7706_daily_bin810.fits outfile=/scratch/kocevski/551814/expmap_449280001_449539201_4FGL_J1628.6+7706_daily_bin810.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/551814/ltcube_449280001_449539201_4FGL_J1628.6+7706_daily_bin810.fits
.....................!
real 192.09
user 186.15
sys 5.41

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/551814/ft1_filtered_4FGL_J1628.6+7706_daily_bin810.fits scfile=/scratch/kocevski/551814/ft2_4FGL_J1628.6+7706_daily_bin810.fits outfile=/scratch/kocevski/551814/cmap_449280001_449539201_4FGL_J1628.6+7706_daily_bin810.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/551814/ft1_filtered_4FGL_J1628.6+7706_daily_bin810.fits scfile=/scratch/kocevski/551814/ft2_4FGL_J1628.6+7706_daily_bin810.fits outfile=/scratch/kocevski/551814/cmap_HighResolution_449280001_449539201_4FGL_J1628.6+7706_daily_bin810.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.56
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/551814/ft1_filtered_4FGL_J1628.6+7706_daily_bin810.fits', '/scratch/kocevski/551814/ft2_4FGL_J1628.6+7706_daily_bin810.fits', expMap='/scratch/kocevski/551814/expmap_449280001_449539201_4FGL_J1628.6+7706_daily_bin810.fits', expCube='/scratch/kocevski/551814/ltcube_449280001_449539201_4FGL_J1628.6+7706_daily_bin810.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/551814/Model_4FGL_J1628.6+7706_daily_bin810.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/551814/ft1_filtered_4FGL_J1628.6+7706_daily_bin810.fits
Spacecraft file(s): /scratch/kocevski/551814/ft2_4FGL_J1628.6+7706_daily_bin810.fits
Exposure map: /scratch/kocevski/551814/expmap_449280001_449539201_4FGL_J1628.6+7706_daily_bin810.fits
Exposure cube: /scratch/kocevski/551814/ltcube_449280001_449539201_4FGL_J1628.6+7706_daily_bin810.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/551814/Model_4FGL_J1628.6+7706_daily_bin810.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) = 5422.599154

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .21059E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.227       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.300       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    40.772       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.611       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    10.174       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    32.066       1.0000         .10000E-03   10000.    
    14 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    32.359       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.0483       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.4642       1.0000         .10000E-03   10000.    
    21 'norm      '    1.6060       1.0000         .10000E-03   10000.    
    22 'norm      '    5.3961       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.9356       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    6.7302       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .47284       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2718       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=   5422.580     FROM MIGRAD    STATUS=CONVERGED    640 CALLS     3285 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.0310        .75820E-06** at limit **
   2  Prefactor     .10000E-03    23.831        .26911E-05** at limit **
   3  Prefactor     .10000E-03    7.3468       -.13491E-06** at limit **
   4  Prefactor     10.229        8.3184        .10184E-05   -.48211E-04
   5  Prefactor     11.300        12.796       -.39560E-06   -.42928E-04
   6  Prefactor     .10000E-03    24.890       -.76652E-05** at limit **
   7  Prefactor     40.763        48.429       -.64386E-05   -.15433E-04
   8  Prefactor     .10000E-03    26.218       -.18180E-04** at limit **
   9  Prefactor     16.699        87.407        .17862E-03    .22659E-04
  10  Prefactor     .10002E-03    105.66       -.10547E-05** at limit **
  11  norm          10.171        18.676        .35712E-06   -.92707E-05
  12  Prefactor     .10000E-03    127.98       -.11232E-03** at limit **
  13  Prefactor     32.074        44.675        .93760E-05   -.37771E-05
  14  norm          .10000E-03    .46538        .10975E-06** at limit **
  15  Prefactor     32.365        15.804       -.30400E-07   -.18641E-04
  16  Prefactor     7.0488        4.2547        .34166E-06   -.20474E-03
  17  Prefactor     .10000E-03    15.102       -.21617E-05** at limit **
  18  Prefactor     .10000E-03    23.643        .43953E-05** at limit **
  19  Prefactor     .10000E-03    22.714        .16054E-04** at limit **
  20  norm          3.4643        3.0425        .34019E-06    .81455E-04
  21  norm          1.6059        .81556        .13622E-06   -.15820E-03
  22  norm          5.3952        7.3965       -.29315E-06   -.22428E-03
  23  Prefactor     6.9364        12.481        .10098E-05   -.59757E-04
  24  Prefactor     .10000E-03    94.490        .93265E-04** at limit **
  25  norm          6.7290        5.3020        .14751E-05   -.21637E-04
  26  Normalizat    .47245        .24563       -.17389E-04   -.16529E-03
  27  Prefactor     1.2720        .15568        .99406E-06   -.17923E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2292
  Prefactor  = 11.3004
  Prefactor  = 0.0001
  Prefactor  = 40.7626
  Prefactor  = 0.000100001
  Prefactor  = 16.6991
  Prefactor  = 0.000100019
  norm       = 10.171
  Prefactor  = 0.0001
  Prefactor  = 32.0743
  norm       = 0.0001
  Prefactor  = 32.3648
  Prefactor  = 7.04879
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.46425
  norm       = 1.60593
  norm       = 5.39516
  Prefactor  = 6.93635
  Prefactor  = 0.0001
  norm       = 6.72895
  Normalizat = 0.47245
  Prefactor  = 1.272
 **********
 **   18 **HESSE 
 **********

 FCN=   5422.580     FROM HESSE     STATUS=OK           494 CALLS     3779 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.7952        .28417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    23.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.3725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.229        8.3197        .12529E-03   -1.5068    
   5  Prefactor     11.300        12.790        .11918E-03   -1.5036    
   6  Prefactor     .10000E-03    24.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     40.763        48.626        .62777E-04   -1.4430    
   8  Prefactor     .10000E-03    26.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.699        87.180        .98269E-04   -1.4890    
  10  Prefactor     .10002E-03    110.07        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          10.171        18.668        .12562E-03   -1.5070    
  12  Prefactor     .10000E-03    127.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     32.074        44.255        .70761E-04   -1.4575    
  14  norm          .10000E-03    .65123        .94318E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     32.365        15.532        .70439E-04   -1.4570    
  16  Prefactor     7.0488        4.2382        .10983E-03   -1.5177    
  17  Prefactor     .10000E-03    15.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    23.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    22.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.4643        3.0386        .11253E-03   -1.5336    
  21  norm          1.6059        .81069        .45480E-04   -1.5455    
  22  norm          5.3952        7.3460        .17299E-03   -1.5243    
  23  Prefactor     6.9364        12.409        .15234E-03   -1.5181    
  24  Prefactor     .10000E-03    94.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          6.7290        5.3078        .14532E-03   -1.5189    
  26  Normalizat    .47245        .25690        .39526E-03   -1.1371    
  27  Prefactor     1.2720        .16607        .17723E-03   -.84144    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.00622e-10
Minuit parameter uncertainties:
  1  0.000181573
  2  5.44795e-06
  3  6.92255e-06
  4  8.32065
  5  12.7927
  6  2.02555e-05
  7  48.6732
  8  0.000272766
  9  76.4863
  10  0.00290657
  11  18.6787
  12  0.000261855
  13  44.3
  14  1.52629e-05
  15  15.5341
  16  4.23841
  17  8.41395e-05
  18  5.4031e-05
  19  3.43399e-05
  20  3.0387
  21  0.810697
  22  7.34727
  23  12.414
  24  0.000140151
  25  5.30818
  26  0.257545
  27  0.166141
Done.

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

Extracting fit parameters...

4FGL J1628.6+7706
   Spectrum: LogParabola
377         norm:  1.017e+01  1.868e+01  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:  1.272e+00  1.661e-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:  4.725e-01  2.575e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.44
Ra Dec: 247.154 77.110
Photon Flux Upper Limit: 6.65e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.56e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/551814/likelihoodResults_449280001_449539201_4FGL_J1628.6+7706_daily_bin810.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5422.57390427
delta logL = 0.00625191222844

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5422.57343799
delta logL = 0.00671819043509

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.6441       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0818       1.0000          .0000       5.0000    
     3 'Normalizat'    .47132       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2723       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.

 FCN=   5422.573     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      223 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.6441        19.962        .32260E-02    .11245E-03
   2  alpha         2.0819        1.1277        .41904E-01    .14616E-04
   3  Normalizat    .47128        .21024        .89326E-01    .38719E-04
   4  Prefactor     1.2723        .14970        .33111E-01   -.81067E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 9.64412
  alpha      = 2.08188
  Normalizat = 0.471275
  Prefactor  = 1.27233
 **********
 **   18 **HESSE 
 **********

 FCN=   5422.573     FROM HESSE     STATUS=OK            31 CALLS      254 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.6441        18.456        .12904E-03   -1.5087    
   2  alpha         2.0819        1.0500        .16761E-02   -.16804    
   3  Normalizat    .47128        .22129        .39574E-03   -1.1377    
   4  Prefactor     1.2723        .15815        .17721E-03   -.84134    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69142e-11
Minuit parameter uncertainties:
  1  18.4671
  2  1.08465
  3  0.221705
  4  0.158206
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/551814': 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) = 5422.57343797
delta logL = 0.0067182096509

Extracting fit parameters...

4FGL J1628.6+7706
   Spectrum: LogParabola
377         norm:  9.644e+00  1.847e+01  1.000e-04  1.000e+04 ( 1.000e-13)
378        alpha:  2.082e+00  1.085e+00  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:  1.272e+00  1.582e-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:  4.713e-01  2.217e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.44
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/551814/cmap_HighResolution_449280001_449539201_4FGL_J1628.6+7706_daily_bin810.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.56e-05', job_status='DONE', photon_flux_upper_limit='6.65e-08', time_completed='2021-09-14 14:55:55.910946', job_id='551814', GAL2='1.27', fit_tolerance='1e-08', EG2='0.47', EG='0.47', time_epoch_completed='1631656555.91', return_code2='0', ts='0.44', comment='SUCCESS', return_code='0', GAL='1.27', dlogl='6.72e-03', ts2='0.45', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='810' AND source_name='4FGL J1628.6+7706' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 14:55:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 551814: <4FGL_J1628.6+7706_daily_bin810> in cluster <slac> Done

Job <4FGL_J1628.6+7706_daily_bin810> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 14 14:40:32 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 14:41:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 14 14:41:47 2021
Terminated at Tue Sep 14 14:55:56 2021
Results reported at Tue Sep 14 14:55:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1628.6+7706_daily_bin810 247.154 77.1099 449280001 449539201 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 :                                   830.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             345.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            924 sec.

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

