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


Performing analysis on: 4FGL_J1628.6+7706_monthly_bin148
RA = 247.154, Dec = 77.1099
tmin = 620611201, tmax = 623203201
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='847436', job_status='RUN', time_executed='2021-10-29 01:11:47.329778', time_epoch_executed='1635495107.33' WHERE source_name='4FGL J1628.6+7706' and cadence='monthly' and bin_id='148'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/847436

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

Retrieving the FT1 file...

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

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

Retrieving 451 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/847436/ft1_4FGL_J1628.6+7706_monthly_bin148.fits


Retrieving the FT1 file...

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

Retrieving 451 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/847436/ft2_4FGL_J1628.6+7706_monthly_bin148.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/847436/ft1_4FGL_J1628.6+7706_monthly_bin148.fits outfile=/scratch/kocevski/847436/ft1_filteredMKT_4FGL_J1628.6+7706_monthly_bin148.fits ra=247.154 dec=77.1099 rad=12.0 tmin=620611201.0 tmax=623203201.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 33.22
user 32.37
sys 0.71

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/847436/ft1_filtered_4FGL_J1628.6+7706_monthly_bin148.fits" evtable="EVENTS" scfile=/scratch/kocevski/847436/ft2_4FGL_J1628.6+7706_monthly_bin148.fits sctable="SC_DATA" outfile=/scratch/kocevski/847436/ltcube_620611201_623203201_4FGL_J1628.6+7706_monthly_bin148.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/847436/ft2_4FGL_J1628.6+7706_monthly_bin148.fits
.....................!
real 116.50
user 115.76
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/847436/ft1_filtered_4FGL_J1628.6+7706_monthly_bin148.fits evtable="EVENTS" scfile=/scratch/kocevski/847436/ft2_4FGL_J1628.6+7706_monthly_bin148.fits sctable="SC_DATA" expcube=/scratch/kocevski/847436/ltcube_620611201_623203201_4FGL_J1628.6+7706_monthly_bin148.fits outfile=/scratch/kocevski/847436/expmap_620611201_623203201_4FGL_J1628.6+7706_monthly_bin148.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/847436/ltcube_620611201_623203201_4FGL_J1628.6+7706_monthly_bin148.fits
.....................!
real 196.08
user 188.24
sys 5.92

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/847436/ft1_filtered_4FGL_J1628.6+7706_monthly_bin148.fits scfile=/scratch/kocevski/847436/ft2_4FGL_J1628.6+7706_monthly_bin148.fits outfile=/scratch/kocevski/847436/cmap_620611201_623203201_4FGL_J1628.6+7706_monthly_bin148.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.78
user 0.60
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/847436/ft1_filtered_4FGL_J1628.6+7706_monthly_bin148.fits scfile=/scratch/kocevski/847436/ft2_4FGL_J1628.6+7706_monthly_bin148.fits outfile=/scratch/kocevski/847436/cmap_HighResolution_620611201_623203201_4FGL_J1628.6+7706_monthly_bin148.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.79
user 0.62
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5709       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.7111       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.674       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .15395E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.654       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.4258       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.9703       1.0000         .10000E-03   10000.    
    11 'norm      '    10.134       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .21193E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .97118       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.9229       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .33787       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.6071       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.181       1.0000         .10000E-03   10000.    
    19 'Prefactor '    26.755       1.0000         .10000E-03   10000.    
    20 'norm      '    4.0627       1.0000         .10000E-03   10000.    
    21 'norm      '    5.8809       1.0000         .10000E-03   10000.    
    22 'norm      '    3.5572       1.0000         .10000E-03   10000.    
    23 'Prefactor '    20.819       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.6197       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .98888       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0583       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   136482.8     FROM MIGRAD    STATUS=CONVERGED    647 CALLS     2864 TOTAL
                     EDM=   .45E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5709        .72781         .0000        .34368E-02
   2  Prefactor     .10000E-03    2.0077         .0000    ** at limit **
   3  Prefactor     .10000E-03    .90603         .0000    ** at limit **
   4  Prefactor     1.7114        1.8891         .0000        .19853    
   5  Prefactor     .10000E-03    1.2863         .0000    ** at limit **
   6  Prefactor     10.674        9.4968         .0000        .63483E-04
   7  Prefactor     .10000E-03    1.0848         .0000    ** at limit **
   8  Prefactor     16.655        8.6433         .0000        .37276E-03
   9  Prefactor     5.4261        6.0281         .0000        .38836E-02
  10  Prefactor     1.9709        3.0963         .0000        .29119E-02
  11  norm          10.132        3.5049         .0000       -.12818E-02
  12  Prefactor     .10001E-03    6.1005         .0000    ** at limit **
  13  Prefactor     .10000E-03    8.0629         .0000    ** at limit **
  14  norm          .97123        .19011         .0000        .98546E-02
  15  Prefactor     5.9233        1.9776         .0000        .23235E-02
  16  Prefactor     .33838        .63191         .0000        .44557E-01
  17  Prefactor     3.6072        2.7975         .0000        .42491E-01
  18  Prefactor     15.174        7.4533         .0000       -.16489E-02
  19  Prefactor     26.760        10.606         .0000       -.63319E-04
  20  norm          4.0627        .65552         .0000        .19075E-02
  21  norm          5.8808        .28623         .0000        .56699E-03
  22  norm          3.5573        .99011         .0000        .53867E-02
  23  Prefactor     20.819        2.6067         .0000       -.84483E-02
  24  Prefactor     .10001E-03    6.0018         .0000    ** at limit **
  25  norm          1.6197        .64682         .0000        .76139E-02
  26  Normalizat    .98886        .45064E-01     .0000        .37872E-03
  27  Prefactor     1.0583        .29085E-01     .0000        .56245E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.57094
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.71135
  Prefactor  = 0.0001
  Prefactor  = 10.674
  Prefactor  = 0.0001
  Prefactor  = 16.6553
  Prefactor  = 5.42608
  Prefactor  = 1.97089
  norm       = 10.1319
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  norm       = 0.971226
  Prefactor  = 5.92329
  Prefactor  = 0.338383
  Prefactor  = 3.60716
  Prefactor  = 15.1739
  Prefactor  = 26.7604
  norm       = 4.06269
  norm       = 5.88078
  norm       = 3.55729
  Prefactor  = 20.8191
  Prefactor  = 0.00010001
  norm       = 1.61969
  Normalizat = 0.988858
  Prefactor  = 1.05834
 **********
 **   18 **HESSE 
 **********

 FCN=   136482.8     FROM HESSE     STATUS=OK           510 CALLS     3374 TOTAL
                     EDM=   .36E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5709        .72671        .16309E-03   -1.5387    
   2  Prefactor     .10000E-03    2.0222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .92143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.7114        1.8927        .16067E-02   -1.5446    
   5  Prefactor     .10000E-03    1.3035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.674        9.4949        .12263E-03   -1.5054    
   7  Prefactor     .10000E-03    1.2070        .12727       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.655        8.6522        .98143E-04   -1.4892    
   9  Prefactor     5.4261        6.0237        .86256E-03   -1.5242    
  10  Prefactor     1.9709        3.0848        .29540E-03   -1.5427    
  11  norm          10.132        3.4943        .12587E-03   -1.5071    
  12  Prefactor     .10001E-03    6.1069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.3717        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .97123        .18325        .64660E-04   -1.5511    
  15  Prefactor     5.9233        1.9671        .16500E-03   -1.5221    
  16  Prefactor     .33838        .60945        .32689E-02   -1.5592    
  17  Prefactor     3.6072        2.7770        .10637E-02   -1.5328    
  18  Prefactor     15.174        7.1214        .10280E-03   -1.4929    
  19  Prefactor     26.760        10.621        .77448E-04   -1.4673    
  20  norm          4.0627        .65412        .11413E-03   -1.5305    
  21  norm          5.8808        .28641        .40654E-04   -1.5223    
  22  norm          3.5573        .98551        .17957E-03   -1.5331    
  23  Prefactor     20.819        2.6012        .87783E-04   -1.4795    
  24  Prefactor     .10001E-03    6.0284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.6197        .64547        .18172E-03   -1.5453    
  26  Normalizat    .98886        .51313E-01    .30751E-03   -.93405    
  27  Prefactor     1.0583        .33231E-01    .20258E-03   -.90809    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.56963e-06
Minuit parameter uncertainties:
  1  0.726716
  2  1.52834e-06
  3  5.50444e-07
  4  1.89276
  5  5.48937e-07
  6  9.4962
  7  4.05566e-05
  8  8.65287
  9  6.02435
  10  3.08504
  11  3.49436
  12  0.000526197
  13  3.18526e-05
  14  0.183255
  15  1.96713
  16  0.609463
  17  2.77711
  18  7.12182
  19  10.6217
  20  0.654118
  21  0.286407
  22  0.985517
  23  2.60121
  24  0.000490691
  25  0.645476
  26  0.0513157
  27  0.0332312
Done.

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

Extracting fit parameters...

4FGL J1628.6+7706
   Spectrum: LogParabola
377         norm:  1.013e+01  3.494e+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

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  1.058e+00  3.323e-02  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:  9.889e-01  5.132e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 20.37
Ra Dec: 247.154 77.110
Photon Index (Fixed Index): 1.96 +/- 0.00
Photon Flux (Fixed Index): 1.01e-08 +/- 3.49e-09
Energy Flux (Fixed Index): 6.94e-06 +/- 2.40e-06

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) = 136482.808909
delta logL = 0.0010558674403

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 136482.808893
delta logL = 0.00107210630085

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.138       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9712       1.0000          .0000       5.0000    
     3 'Normalizat'    .98863       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0584       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   136482.8     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      273 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.141        3.4662        .12585E-03   -.41917E-03
   2  alpha         1.9716        .29399        .31457E-01    .26217E-04
   3  Normalizat    .98867        .47496E-01    .30753E-03   -.37855E-04
   4  Prefactor     1.0584        .32328E-01    .20258E-03   -.12571E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.1409
  alpha      = 1.97158
  Normalizat = 0.988673
  Prefactor  = 1.05837
 **********
 **   18 **HESSE 
 **********

 FCN=   136482.8     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.141        3.4674        .50339E-05   -1.5071    
   2  alpha         1.9716        .29430        .12583E-02   -.21298    
   3  Normalizat    .98867        .47511E-01    .12301E-04   -.93411    
   4  Prefactor     1.0584        .32347E-01    .81030E-05   -.90808    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09642e-11
Minuit parameter uncertainties:
  1  3.46742
  2  0.295016
  3  0.0475133
  4  0.0323473
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/847436': 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) = 136482.808891
delta logL = 0.00107373154606

Extracting fit parameters...

4FGL J1628.6+7706
   Spectrum: LogParabola
377         norm:  1.014e+01  3.467e+00  1.000e-04  1.000e+04 ( 1.000e-13)
378        alpha:  1.972e+00  2.950e-01  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.058e+00  3.235e-02  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:  9.887e-01  4.751e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 20.36
Ra Dec: 247.154 77.110
Photon Index (Free Index): 1.97 +/- 0.30
Photon Flux (Free Index): 1.03e-08 +/- 5.49e-09
Energy Flux (Free Index): 6.90e-06 +/- 2.56e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/847436/cmap_HighResolution_620611201_623203201_4FGL_J1628.6+7706_monthly_bin148.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.01e-08', energy_flux2='6.90e-06', photon_flux_error='3.49e-09', dlogl='1.07e-03', energy_flux='6.94e-06', photon_flux2='1.03e-08', job_status='DONE', time_completed='2021-10-29 03:59:16.246494', photon_index_error2='0.30', photon_index2='1.97', ts='20.37', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='2.56e-06', EG='0.99', time_epoch_completed='1635505156.25', return_code='0', job_id='847436', GAL2='1.06', EG2='0.99', return_code2='0', energy_flux_error='2.40e-06', photon_flux_error2='5.49e-09', ts2='20.36', photon_index='1.96' WHERE bin_id='148' AND source_name='4FGL J1628.6+7706' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Fri Oct 29 03:59:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 847436: <4FGL_J1628.6+7706_monthly_bin148> in cluster <slac> Done

Job <4FGL_J1628.6+7706_monthly_bin148> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Oct 29 01:10:19 2021
Job was executed on host(s) <bullet0163>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Oct 29 01:10:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Oct 29 01:10:20 2021
Terminated at Fri Oct 29 03:59:17 2021
Results reported at Fri Oct 29 03:59:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1628.6+7706_monthly_bin148 247.154 77.1099 620611201 623203201 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 :                                   9878.00 sec.
    Max Memory :                                 635 MB
    Average Memory :                             508.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   10137 sec.
    Turnaround time :                            10138 sec.

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

