/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 59 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 = 7473
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1627.7+0251_daily_bin547
RA = 246.942, Dec = 2.8584
tmin = 381110401, tmax = 381369601
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='514736', job_status='RUN', time_executed='2021-09-14 13:38:33.128627', time_epoch_executed='1631651913.13' WHERE source_name='4FGL J1627.7+0251' and cadence='daily' and bin_id='547'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514736

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514736/ft1_4FGL_J1627.7+0251_daily_bin547.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514736/ft2_4FGL_J1627.7+0251_daily_bin547.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514736/ft1_4FGL_J1627.7+0251_daily_bin547.fits outfile=/scratch/kocevski/514736/ft1_filteredMKT_4FGL_J1627.7+0251_daily_bin547.fits ra=246.942 dec=2.8584 rad=12.0 tmin=381110401.0 tmax=381369601.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 5.29
user 4.46
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/514736/ft2_4FGL_J1627.7+0251_daily_bin547.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/514736/ft2_4FGL_J1627.7+0251_daily_bin547.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/514736/ft1_filteredMKT_4FGL_J1627.7+0251_daily_bin547.fits evtable="EVENTS" outfile="/scratch/kocevski/514736/ft1_filtered_4FGL_J1627.7+0251_daily_bin547.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.71
user 0.36
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/514736/ft1_filtered_4FGL_J1627.7+0251_daily_bin547.fits" evtable="EVENTS" scfile=/scratch/kocevski/514736/ft2_4FGL_J1627.7+0251_daily_bin547.fits sctable="SC_DATA" outfile=/scratch/kocevski/514736/ltcube_381110401_381369601_4FGL_J1627.7+0251_daily_bin547.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/514736/ft2_4FGL_J1627.7+0251_daily_bin547.fits
.....................!
real 14.97
user 14.17
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514736/ft1_filtered_4FGL_J1627.7+0251_daily_bin547.fits evtable="EVENTS" scfile=/scratch/kocevski/514736/ft2_4FGL_J1627.7+0251_daily_bin547.fits sctable="SC_DATA" expcube=/scratch/kocevski/514736/ltcube_381110401_381369601_4FGL_J1627.7+0251_daily_bin547.fits outfile=/scratch/kocevski/514736/expmap_381110401_381369601_4FGL_J1627.7+0251_daily_bin547.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/514736/ltcube_381110401_381369601_4FGL_J1627.7+0251_daily_bin547.fits
.....................!
real 193.50
user 186.84
sys 5.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
Extended source FHES J1723.5-0501 in ROI with RadialGaussian spatial model.
Added 164 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1627.7+0251 @ 246.942 2.8584

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/514736/ft1_filtered_4FGL_J1627.7+0251_daily_bin547.fits scfile=/scratch/kocevski/514736/ft2_4FGL_J1627.7+0251_daily_bin547.fits outfile=/scratch/kocevski/514736/cmap_381110401_381369601_4FGL_J1627.7+0251_daily_bin547.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=246.942 yref=2.8584 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.63
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/514736/ft1_filtered_4FGL_J1627.7+0251_daily_bin547.fits scfile=/scratch/kocevski/514736/ft2_4FGL_J1627.7+0251_daily_bin547.fits outfile=/scratch/kocevski/514736/cmap_HighResolution_381110401_381369601_4FGL_J1627.7+0251_daily_bin547.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=246.942 yref=2.8584 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.67
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/514736/ft1_filtered_4FGL_J1627.7+0251_daily_bin547.fits evtable="EVENTS" scfile=/scratch/kocevski/514736/ft2_4FGL_J1627.7+0251_daily_bin547.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/514736/Model_4FGL_J1627.7+0251_daily_bin547.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source FHES J1723.5-0501
adding source GAL_V02
Working on...
/scratch/kocevski/514736/ft1_filtered_4FGL_J1627.7+0251_daily_bin547.fits....................!
real 98.92
user 97.05
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/514736/ft1_filtered_4FGL_J1627.7+0251_daily_bin547.fits', '/scratch/kocevski/514736/ft2_4FGL_J1627.7+0251_daily_bin547.fits', expMap='/scratch/kocevski/514736/expmap_381110401_381369601_4FGL_J1627.7+0251_daily_bin547.fits', expCube='/scratch/kocevski/514736/ltcube_381110401_381369601_4FGL_J1627.7+0251_daily_bin547.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/514736/Model_4FGL_J1627.7+0251_daily_bin547.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1627.7+0251'

4FGL J1627.7+0251
   Spectrum: PowerLaw
271    Prefactor:  7.087e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
272        Index:  2.187e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
273        Scale:  1.937e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/514736/ft1_filtered_4FGL_J1627.7+0251_daily_bin547.fits
Spacecraft file(s): /scratch/kocevski/514736/ft2_4FGL_J1627.7+0251_daily_bin547.fits
Exposure map: /scratch/kocevski/514736/expmap_381110401_381369601_4FGL_J1627.7+0251_daily_bin547.fits
Exposure cube: /scratch/kocevski/514736/ltcube_381110401_381369601_4FGL_J1627.7+0251_daily_bin547.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/514736/Model_4FGL_J1627.7+0251_daily_bin547.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) = 11885.6778857

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.1535       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.1484       1.0000         .10000E-03   10000.    
     6 'norm      '    20.392       1.0000         .10000E-03   10000.    
     7 'norm      '    .10223E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    138.38       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.180       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.827       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.2524       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    46.397       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2790       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0039       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11885.63     FROM MIGRAD    STATUS=CONVERGED    399 CALLS     2240 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.1574        .90712E-02** at limit **
   2  Prefactor     .10000E-03    1.4667        .90712E-02** at limit **
   3  norm          1.1534        2.3509        .42388E-01    .14982E-02
   4  Prefactor     .10000E-03    44.892        .90712E-02** at limit **
   5  norm          4.1484        1.7645        .49474E-02   -.20170E-03
   6  norm          20.392        12.674        .22174E-02    .91118E-04
   7  norm          .10001E-03    110.70        .90712E-02** at limit **
   8  Prefactor     138.38        82.240        .85605E-03   -.49887E-03
   9  Prefactor     11.176        34.277        .29955E-02    .44047E-03
  10  Prefactor     .10000E-03    5.1119        .90712E-02** at limit **
  11  Prefactor     .10000E-03    2.6648        .90712E-01** at limit **
  12  Prefactor     16.827        13.778        .24409E-02    .37130E-04
  13  Prefactor     .10000E-03    14.412        .90712E-02** at limit **
  14  Prefactor     3.2524        3.4886        .56143E-02    .38833E-03
  15  Prefactor     .10000E-03    8.4706        .90712E-02** at limit **
  16  Prefactor     .10000E-03    6.5651        .90712E-02** at limit **
  17  Prefactor     46.397        183.96        .14716E-02   -.57261E-04
  18  Normalizat    1.2790        .24366        .10391        .14024E-03
  19  Prefactor     1.0039        .70228E-01    .44428E-01    .27124E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.15344
  Prefactor  = 0.000100004
  norm       = 4.14844
  norm       = 20.3923
  norm       = 0.000100006
  Prefactor  = 138.378
  Prefactor  = 11.1764
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 16.8266
  Prefactor  = 0.0001
  Prefactor  = 3.25244
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 46.3975
  Normalizat = 1.27895
  Prefactor  = 1.00395
 **********
 **   18 **HESSE 
 **********

 FCN=   11885.63     FROM HESSE     STATUS=OK           264 CALLS     2504 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.1581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.4897        .12887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.1534        1.8480        .23054E-02   -1.5493    
   4  Prefactor     .10000E-03    44.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.1484        1.7656        .92028E-04   -1.5301    
   6  norm          20.392        12.705        .88696E-04   -1.4805    
   7  norm          .10001E-03    110.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     138.38        82.306        .34242E-04   -1.3350    
   9  Prefactor     11.176        34.321        .11982E-03   -1.5039    
  10  Prefactor     .10000E-03    5.1259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    20.692        .34344E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.827        13.815        .97638E-04   -1.4887    
  13  Prefactor     .10000E-03    14.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.2524        3.4829        .20388E-03   -1.5347    
  15  Prefactor     .10000E-03    8.8561        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.6589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     46.397        185.06        .58864E-04   -1.4345    
  18  Normalizat    1.2790        .27889        .46051E-03   -.84197    
  19  Prefactor     1.0039        .81559E-01    .15248E-03   -.92598    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.61456e-09
Minuit parameter uncertainties:
  1  1.96906e-05
  2  1.08262e-05
  3  1.84812
  4  0.000860175
  5  1.76559
  6  12.7068
  7  0.00164662
  8  82.3742
  9  34.3817
  10  8.38573e-07
  11  0.000292887
  12  13.8179
  13  3.46781e-05
  14  3.48308
  15  1.22777e-06
  16  2.15523e-05
  17  186.342
  18  0.279213
  19  0.081569
Done.

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

Extracting fit parameters...

4FGL J1627.7+0251
   Spectrum: PowerLaw
271    Prefactor:  1.384e+02  8.237e+01  1.000e-04  1.000e+04 ( 1.000e-14)
272        Index:  2.187e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
273        Scale:  1.937e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  1.004e+00  8.157e-02  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  1.279e+00  2.792e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.62
Ra Dec: 246.942 2.858
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 7.62e-08 +/- 4.53e-08
Energy Flux (Fixed Index): 3.50e-05 +/- 2.09e-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) = 11885.4295466
delta logL = 0.204384229102

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11885.4067257
delta logL = 0.227205097644

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    166.94       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8687       1.0000          .0000       10.000    
     3 'Normalizat'    1.3077       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0005       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+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=   11885.41     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      322 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     166.93        112.35        .15610E-03    .11070E-04
   2  Index         1.8688        .49617        .97248E-02    .23729E-04
   3  Normalizat    1.3077        .26814        .45622E-03    .65788E-04
   4  Prefactor     1.0005        .79382E-01    .15272E-03    .20528E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 166.929
  Index      = 1.86877
  Normalizat = 1.30767
  Prefactor  = 1.00052
 **********
 **   18 **HESSE 
 **********

 FCN=   11885.41     FROM HESSE     STATUS=OK            25 CALLS      347 TOTAL
                     EDM=   .94E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     166.93        111.78        .62441E-05   -1.3117    
   2  Index         1.8688        .49309        .38899E-03   -.67673    
   3  Normalizat    1.3077        .26812        .18249E-04   -.83338    
   4  Prefactor     1.0005        .79414E-01    .30544E-04   -.92712    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.4095e-12
Minuit parameter uncertainties:
  1  111.918
  2  0.494415
  3  0.268409
  4  0.0794237
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514736': 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) = 11885.4067257
delta logL = 0.227205103653

Extracting fit parameters...

4FGL J1627.7+0251
   Spectrum: PowerLaw
271    Prefactor:  1.669e+02  1.119e+02  1.000e-04  1.000e+04 ( 1.000e-14)
272        Index:  1.869e+00  4.944e-01  0.000e+00  1.000e+01 (-1.000e+00)
273        Scale:  1.937e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  1.001e+00  7.942e-02  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  1.308e+00  2.684e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.05
Ra Dec: 246.942 2.858
Photon Index (Free Index): 1.87 +/- 0.49
Photon Flux (Free Index): 4.88e-08 +/- 5.30e-08
Energy Flux (Free Index): 4.77e-05 +/- 4.11e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/514736/cmap_HighResolution_381110401_381369601_4FGL_J1627.7+0251_daily_bin547.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.62e-08', energy_flux2='4.77e-05', photon_flux_error='4.53e-08', dlogl='2.27e-01', energy_flux='3.50e-05', photon_flux2='4.88e-08', job_status='DONE', time_completed='2021-09-14 13:51:56.572045', photon_index_error2='0.49', photon_index2='1.87', ts='9.62', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='4.11e-05', EG='1.28', time_epoch_completed='1631652716.57', return_code='0', job_id='514736', GAL2='1.00', EG2='1.31', return_code2='0', energy_flux_error='2.09e-05', photon_flux_error2='5.30e-08', ts2='10.05', photon_index='2.19' WHERE bin_id='547' AND source_name='4FGL J1627.7+0251' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 13:51:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0150>
Subject: Job 514736: <4FGL_J1627.7+0251_daily_bin547> in cluster <slac> Done

Job <4FGL_J1627.7+0251_daily_bin547> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 14 13:36:08 2021
Job was executed on host(s) <bullet0150>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 13:36:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 14 13:36:37 2021
Terminated at Tue Sep 14 13:51:57 2021
Results reported at Tue Sep 14 13:51:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1627.7+0251_daily_bin547 246.942 2.8584 381110401 381369601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1627.7+0251 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   798.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             315.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            949 sec.

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

