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


Performing analysis on: 4FGL_J1627.7+0251_daily_bin552
RA = 246.942, Dec = 2.8584
tmin = 382406401, tmax = 382665601
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='514742', job_status='RUN', time_executed='2021-09-14 13:37:21.350972', time_epoch_executed='1631651841.35' WHERE source_name='4FGL J1627.7+0251' and cadence='daily' and bin_id='552'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514742

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514742/ft1_4FGL_J1627.7+0251_daily_bin552.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514742/ft2_4FGL_J1627.7+0251_daily_bin552.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514742/ft1_4FGL_J1627.7+0251_daily_bin552.fits outfile=/scratch/kocevski/514742/ft1_filteredMKT_4FGL_J1627.7+0251_daily_bin552.fits ra=246.942 dec=2.8584 rad=12.0 tmin=382406401.0 tmax=382665601.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.12
user 4.50
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/514742/ft1_filtered_4FGL_J1627.7+0251_daily_bin552.fits" evtable="EVENTS" scfile=/scratch/kocevski/514742/ft2_4FGL_J1627.7+0251_daily_bin552.fits sctable="SC_DATA" outfile=/scratch/kocevski/514742/ltcube_382406401_382665601_4FGL_J1627.7+0251_daily_bin552.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/514742/ft2_4FGL_J1627.7+0251_daily_bin552.fits
.....................!
real 15.22
user 14.71
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514742/ft1_filtered_4FGL_J1627.7+0251_daily_bin552.fits evtable="EVENTS" scfile=/scratch/kocevski/514742/ft2_4FGL_J1627.7+0251_daily_bin552.fits sctable="SC_DATA" expcube=/scratch/kocevski/514742/ltcube_382406401_382665601_4FGL_J1627.7+0251_daily_bin552.fits outfile=/scratch/kocevski/514742/expmap_382406401_382665601_4FGL_J1627.7+0251_daily_bin552.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/514742/ltcube_382406401_382665601_4FGL_J1627.7+0251_daily_bin552.fits
.....................!
real 193.58
user 187.13
sys 5.32

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/514742/ft1_filtered_4FGL_J1627.7+0251_daily_bin552.fits scfile=/scratch/kocevski/514742/ft2_4FGL_J1627.7+0251_daily_bin552.fits outfile=/scratch/kocevski/514742/cmap_382406401_382665601_4FGL_J1627.7+0251_daily_bin552.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.68
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/514742/ft1_filtered_4FGL_J1627.7+0251_daily_bin552.fits scfile=/scratch/kocevski/514742/ft2_4FGL_J1627.7+0251_daily_bin552.fits outfile=/scratch/kocevski/514742/cmap_HighResolution_382406401_382665601_4FGL_J1627.7+0251_daily_bin552.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.57
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/514742/ft1_filtered_4FGL_J1627.7+0251_daily_bin552.fits evtable="EVENTS" scfile=/scratch/kocevski/514742/ft2_4FGL_J1627.7+0251_daily_bin552.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/514742/Model_4FGL_J1627.7+0251_daily_bin552.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/514742/ft1_filtered_4FGL_J1627.7+0251_daily_bin552.fits.....................!
real 87.81
user 85.91
sys 1.43

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/514742/ft1_filtered_4FGL_J1627.7+0251_daily_bin552.fits', '/scratch/kocevski/514742/ft2_4FGL_J1627.7+0251_daily_bin552.fits', expMap='/scratch/kocevski/514742/expmap_382406401_382665601_4FGL_J1627.7+0251_daily_bin552.fits', expCube='/scratch/kocevski/514742/ltcube_382406401_382665601_4FGL_J1627.7+0251_daily_bin552.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/514742/Model_4FGL_J1627.7+0251_daily_bin552.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/514742/ft1_filtered_4FGL_J1627.7+0251_daily_bin552.fits
Spacecraft file(s): /scratch/kocevski/514742/ft2_4FGL_J1627.7+0251_daily_bin552.fits
Exposure map: /scratch/kocevski/514742/expmap_382406401_382665601_4FGL_J1627.7+0251_daily_bin552.fits
Exposure cube: /scratch/kocevski/514742/ltcube_382406401_382665601_4FGL_J1627.7+0251_daily_bin552.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/514742/Model_4FGL_J1627.7+0251_daily_bin552.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) = 10254.2100136

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .99608E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.6269       1.0000         .10000E-03   10000.    
     4 'Prefactor '    55.438       1.0000         .10000E-03   10000.    
     5 'norm      '    3.8494       1.0000         .10000E-03   10000.    
     6 'norm      '    13.682       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    114.56       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.8952       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.7384       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.0835       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.454       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1305       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0720       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.

 FCN=   10254.20     FROM MIGRAD    STATUS=CONVERGED    386 CALLS     1893 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.5914       -.32087E-08** at limit **
   2  Prefactor     .10001E-03    2.0085       -.34494E-06** at limit **
   3  norm          1.6273        2.8880       -.61354E-06   -.79142E-03
   4  Prefactor     55.432        48.320       -.54674E-05    .82756E-04
   5  norm          3.8493        1.7192        .88706E-09    .24654E-03
   6  norm          13.680        13.152       -.20768E-06   -.13002E-04
   7  norm          .10000E-03    49.900       -.29272E-06** at limit **
   8  Prefactor     114.55        89.579       -.93526E-05    .12341E-03
   9  Prefactor     .10000E-03    59.495        .14457E-04** at limit **
  10  Prefactor     6.8851        11.421       -.26097E-05    .17821E-03
  11  Prefactor     1.7397        10.844       -.12554E-04   -.17846E-03
  12  Prefactor     .10000E-03    23.947       -.49403E-05** at limit **
  13  Prefactor     .10000E-03    21.159        .29737E-05** at limit **
  14  Prefactor     .10000E-03    2.1416        .42147E-07** at limit **
  15  Prefactor     6.0826        5.8594       -.23496E-06   -.12036E-03
  16  Prefactor     11.453        10.986       -.95172E-07   -.46881E-04
  17  Prefactor     .10000E-03    75.524       -.15633E-04** at limit **
  18  Normalizat    1.1306        .28382        .58020E-05    .77130E-04
  19  Prefactor     1.0720        .79449E-01   -.29238E-06    .59137E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  norm       = 1.62734
  Prefactor  = 55.4323
  norm       = 3.84935
  norm       = 13.6797
  norm       = 0.0001
  Prefactor  = 114.549
  Prefactor  = 0.000100001
  Prefactor  = 6.88508
  Prefactor  = 1.73972
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.0826
  Prefactor  = 11.4527
  Prefactor  = 0.000100002
  Normalizat = 1.13058
  Prefactor  = 1.07205
 **********
 **   18 **HESSE 
 **********

 FCN=   10254.20     FROM HESSE     STATUS=OK           266 CALLS     2159 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.5941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    27.385        .27005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.6273        2.8680        .22201E-03   -1.5453    
   4  Prefactor     55.432        48.185        .53874E-04   -1.4218    
   5  norm          3.8493        1.7210        .86495E-04   -1.5316    
   6  norm          13.680        13.182        .10829E-03   -1.4968    
   7  norm          .10000E-03    49.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     114.55        88.965        .37588E-04   -1.3563    
   9  Prefactor     .10000E-03    59.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.8851        11.225        .15279E-03   -1.5183    
  11  Prefactor     1.7397        11.534        .31824E-03   -1.5444    
  12  Prefactor     .10000E-03    24.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    21.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.1711        .14468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.0826        5.8493        .16278E-03   -1.5215    
  16  Prefactor     11.453        10.973        .11837E-03   -1.5031    
  17  Prefactor     .10000E-03    75.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1306        .31440        .48603E-03   -.88776    
  19  Prefactor     1.0720        .90219E-01    .15070E-03   -.90365    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17711e-09
Minuit parameter uncertainties:
  1  1.91058e-06
  2  0.000922648
  3  2.8682
  4  48.2191
  5  1.72105
  6  13.1846
  7  1.03429e-05
  8  89.0686
  9  0.000357023
  10  11.2287
  11  8.96111
  12  7.22875e-05
  13  0.000107089
  14  1.32727e-06
  15  5.84987
  16  10.9746
  17  0.000808707
  18  0.314925
  19  0.0902319
Done.

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

Extracting fit parameters...

4FGL J1627.7+0251
   Spectrum: PowerLaw
271    Prefactor:  1.145e+02  8.907e+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.072e+00  9.023e-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.131e+00  3.149e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.46
Ra Dec: 246.942 2.858
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 6.31e-08 +/- 4.90e-08
Energy Flux (Fixed Index): 2.90e-05 +/- 2.26e-05

TS (Fixed Index): 3.46
Ra Dec: 246.942 2.858
Photon Flux Upper Limit: 1.70e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.29e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/514742/likelihoodResults_382406401_382665601_4FGL_J1627.7+0251_daily_bin552.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) = 10254.0144862
delta logL = 0.189991616509

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10253.8370651
delta logL = 0.367412674546

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    46.782       1.0000         .10000E-03   10000.    
     2 'Index     '    1.0548       1.0000          .0000       10.000    
     3 'Normalizat'    1.1969       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0650       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=   10253.84     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      246 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     46.782        51.001        .14656E-02   -.84089E-05
   2  Index         1.0548        .51868        .36170       -.15598E-03
   3  Normalizat    1.1969        .25764        .10693       -.47651E-03
   4  Prefactor     1.0650        .78301E-01    .39101E-01   -.18572E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 46.7825
  Index      = 1.05477
  Normalizat = 1.19686
  Prefactor  = 1.06501
 **********
 **   18 **HESSE 
 **********

 FCN=   10253.84     FROM HESSE     STATUS=OK            27 CALLS      273 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     46.782        83.469        .58622E-04   -1.4339    
   2  Index         1.0548        .84021        .16001E-02   -.90926    
   3  Normalizat    1.1969        .29221        .47401E-03   -.86700    
   4  Prefactor     1.0650        .89308E-01    .15116E-03   -.90593    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.014e-09
Minuit parameter uncertainties:
  1  83.6787
  2  0.851062
  3  0.292605
  4  0.0893204
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514742': 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) = 10253.8370651
delta logL = 0.367412677639

Extracting fit parameters...

4FGL J1627.7+0251
   Spectrum: PowerLaw
271    Prefactor:  4.678e+01  8.368e+01  1.000e-04  1.000e+04 ( 1.000e-14)
272        Index:  1.055e+00  8.511e-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.065e+00  8.932e-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.197e+00  2.926e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.14
Ra Dec: 246.942 2.858
Photon Index (Free Index): 1.05 +/- 0.85
Photon Flux (Free Index): 6.13e-09 +/- 9.84e-09
Energy Flux (Free Index): 7.72e-05 +/- 1.12e-04

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/514742/cmap_HighResolution_382406401_382665601_4FGL_J1627.7+0251_daily_bin552.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.29e-02', comment='SUCCESS', photon_flux='6.31e-08', energy_flux2='7.72e-05', photon_flux_error='4.90e-08', dlogl='3.67e-01', energy_flux='2.90e-05', photon_flux2='6.13e-09', job_status='DONE', time_completed='2021-09-14 13:50:14.130673', photon_index_error2='0.85', photon_index2='1.05', ts='3.46', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.70e-07', energy_flux_error2='1.12e-04', EG='1.13', time_epoch_completed='1631652614.13', return_code='0', job_id='514742', GAL2='1.07', EG2='1.20', return_code2='0', energy_flux_error='2.26e-05', photon_flux_error2='9.84e-09', ts2='4.14', photon_index='2.19' WHERE bin_id='552' AND source_name='4FGL J1627.7+0251' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 13:50:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0146>
Subject: Job 514742: <4FGL_J1627.7+0251_daily_bin552> in cluster <slac> Done

Job <4FGL_J1627.7+0251_daily_bin552> 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) <bullet0146>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 13:36:40 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:40 2021
Terminated at Tue Sep 14 13:50:14 2021
Results reported at Tue Sep 14 13:50:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1627.7+0251_daily_bin552 246.942 2.8584 382406401 382665601 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 :                                   765.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            846 sec.

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

