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


Performing analysis on: 4FGL_J1627.7+0251_daily_bin603
RA = 246.942, Dec = 2.8584
tmin = 395625601, tmax = 395884801
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='515892', job_status='RUN', time_executed='2021-09-14 13:41:51.559898', time_epoch_executed='1631652111.56' WHERE source_name='4FGL J1627.7+0251' and cadence='daily' and bin_id='603'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/515892

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/515892/ft1_4FGL_J1627.7+0251_daily_bin603.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/515892/ft2_4FGL_J1627.7+0251_daily_bin603.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/515892/ft1_4FGL_J1627.7+0251_daily_bin603.fits outfile=/scratch/kocevski/515892/ft1_filteredMKT_4FGL_J1627.7+0251_daily_bin603.fits ra=246.942 dec=2.8584 rad=12.0 tmin=395625601.0 tmax=395884801.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 4.51
user 4.25
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/515892/ft1_filtered_4FGL_J1627.7+0251_daily_bin603.fits" evtable="EVENTS" scfile=/scratch/kocevski/515892/ft2_4FGL_J1627.7+0251_daily_bin603.fits sctable="SC_DATA" outfile=/scratch/kocevski/515892/ltcube_395625601_395884801_4FGL_J1627.7+0251_daily_bin603.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/515892/ft2_4FGL_J1627.7+0251_daily_bin603.fits
.....................!
real 12.73
user 12.29
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/515892/ft1_filtered_4FGL_J1627.7+0251_daily_bin603.fits evtable="EVENTS" scfile=/scratch/kocevski/515892/ft2_4FGL_J1627.7+0251_daily_bin603.fits sctable="SC_DATA" expcube=/scratch/kocevski/515892/ltcube_395625601_395884801_4FGL_J1627.7+0251_daily_bin603.fits outfile=/scratch/kocevski/515892/expmap_395625601_395884801_4FGL_J1627.7+0251_daily_bin603.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/515892/ltcube_395625601_395884801_4FGL_J1627.7+0251_daily_bin603.fits
.....................!
real 191.02
user 185.17
sys 4.90

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/515892/ft1_filtered_4FGL_J1627.7+0251_daily_bin603.fits scfile=/scratch/kocevski/515892/ft2_4FGL_J1627.7+0251_daily_bin603.fits outfile=/scratch/kocevski/515892/cmap_395625601_395884801_4FGL_J1627.7+0251_daily_bin603.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.57
user 0.38
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/515892/ft1_filtered_4FGL_J1627.7+0251_daily_bin603.fits scfile=/scratch/kocevski/515892/ft2_4FGL_J1627.7+0251_daily_bin603.fits outfile=/scratch/kocevski/515892/cmap_HighResolution_395625601_395884801_4FGL_J1627.7+0251_daily_bin603.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/515892/ft1_filtered_4FGL_J1627.7+0251_daily_bin603.fits evtable="EVENTS" scfile=/scratch/kocevski/515892/ft2_4FGL_J1627.7+0251_daily_bin603.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/515892/Model_4FGL_J1627.7+0251_daily_bin603.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/515892/ft1_filtered_4FGL_J1627.7+0251_daily_bin603.fits.....................!
real 74.04
user 72.60
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11060E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.558       1.0000         .10000E-03   10000.    
     5 'norm      '    4.7298       1.0000         .10000E-03   10000.    
     6 'norm      '    36.870       1.0000         .10000E-03   10000.    
     7 'norm      '    41.243       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11080E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.7111       1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.684       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11032E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10232E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.8981       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .74211E-02   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .79435       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1062       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=   8846.809     FROM MIGRAD    STATUS=CONVERGED    415 CALLS     1937 TOTAL
                     EDM=   .94E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.811       -.70893E-09** at limit **
   2  Prefactor     .10003E-03    3.3084        .43146E-06** at limit **
   3  norm          .10000E-03    2.7456       -.18588E-06** at limit **
   4  Prefactor     21.394        68.297       -.76586E-06   -.43363E-04
   5  norm          4.7299        1.9552       -.23068E-07    .14950E-05
   6  norm          36.877        18.957        .82058E-07   -.10172E-04
   7  norm          41.075        77.002       -.71214E-06   -.62255E-04
   8  Prefactor     .10000E-03    49.477        .26633E-06** at limit **
   9  Prefactor     .10000E-03    74.083        .80039E-06** at limit **
  10  Prefactor     .10000E-03    5.0044        .16089E-06** at limit **
  11  Prefactor     4.7113        5.0262        .46318E-08   -.10885E-04
  12  Prefactor     21.697        22.300        .22709E-06   -.17204E-04
  13  Prefactor     .10000E-03    36.530       -.73335E-06** at limit **
  14  Prefactor     .10000E-03    3.4417        .26219E-06** at limit **
  15  Prefactor     .10000E-03    7.2384        .21658E-06** at limit **
  16  Prefactor     4.8994        7.2453        .39875E-05   -.87099E-04
  17  Prefactor     .10001E-03    458.09        .28508E-05** at limit **
  18  Normalizat    .79415        .28545       -.49870E-06   -.67565E-04
  19  Prefactor     1.1061        .85907E-01   -.17557E-06   -.12871E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100027
  norm       = 0.0001
  Prefactor  = 21.3936
  norm       = 4.72994
  norm       = 36.8773
  norm       = 41.0748
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.71134
  Prefactor  = 21.697
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.89943
  Prefactor  = 0.000100009
  Normalizat = 0.794149
  Prefactor  = 1.10614
 **********
 **   18 **HESSE 
 **********

 FCN=   8846.809     FROM HESSE     STATUS=OK           274 CALLS     2211 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10003E-03    3.5889        .48949E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.8385        .30410E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.394        68.461        .86266E-04   -1.4783    
   5  norm          4.7299        1.9565        .82291E-04   -1.5273    
   6  norm          36.877        18.990        .66003E-04   -1.4493    
   7  norm          41.075        77.012        .31209E-03   -1.4425    
   8  Prefactor     .10000E-03    49.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    75.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.0338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.7113        5.0249        .18539E-03   -1.5274    
  12  Prefactor     21.697        22.406        .86016E-04   -1.4776    
  13  Prefactor     .10000E-03    36.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.4921        .17029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.5447        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.8994        7.2524        .90871E-03   -1.5265    
  17  Prefactor     .10001E-03    458.92        .18604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .79415        .31095        .53441E-03   -1.0029    
  19  Prefactor     1.1061        .94688E-01    .14336E-03   -.89271    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97635e-10
Minuit parameter uncertainties:
  1  4.21905e-06
  2  0.000622737
  3  3.04675e-06
  4  68.7141
  5  1.95648
  6  18.9934
  7  77.1991
  8  3.40546e-05
  9  3.98999e-05
  10  4.52481e-07
  11  5.02536
  12  22.4144
  13  1.6854e-05
  14  1.9185e-06
  15  4.07268e-05
  16  7.25373
  17  0.00410201
  18  0.311649
  19  0.0947019
Done.

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

Extracting fit parameters...

4FGL J1627.7+0251
   Spectrum: PowerLaw
271    Prefactor:  1.000e-04  3.405e-05  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.106e+00  9.470e-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:  7.941e-01  3.116e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 246.942 2.858
Photon Flux Upper Limit: 7.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/515892/likelihoodResults_395625601_395884801_4FGL_J1627.7+0251_daily_bin603.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) = 8846.80901712
delta logL = -9.60485303949e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8846.80892108
delta logL = -7.68159225117e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2452       1.0000          .0000       10.000    
     3 'Normalizat'    .79415       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1061       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=   8846.809     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      238 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6192.0        .90712E-02** at limit **
   2  Index         2.2428        6.1164        .50000        .40900E-06
   3  Normalizat    .79415        .54393E-01    .12047        .38229E-04
   4  Prefactor     1.1061        .17060E-01    .37358E-01   -.23544E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.24279
  Normalizat = 0.79415
  Prefactor  = 1.10614
 **********
 **   18 **HESSE 
 **********

 FCN=   8846.809     FROM HESSE     STATUS=OK            33 CALLS      271 TOTAL
                     EDM=   .62E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    67.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2428        6.0740        .50000       -.58409    
   3  Normalizat    .79415        .28864        .53439E-03   -1.0029    
   4  Prefactor     1.1061        .91076E-01    .14336E-03   -.89271    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.16804e-13
Minuit parameter uncertainties:
  1  7.09827e-05
  2  4.92889
  3  0.289197
  4  0.0910892
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/515892': 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) = 8846.80892108
delta logL = -3.96357791033e-09

Extracting fit parameters...

4FGL J1627.7+0251
   Spectrum: PowerLaw
271    Prefactor:  1.000e-04  7.098e-05  1.000e-04  1.000e+04 ( 1.000e-14)
272        Index:  2.243e+00  4.929e+00  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.106e+00  9.109e-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:  7.942e-01  2.892e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 246.942 2.858

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/515892/cmap_HighResolution_395625601_395884801_4FGL_J1627.7+0251_daily_bin603.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.86e-03', job_status='DONE', photon_flux_upper_limit='7.70e-08', time_completed='2021-09-14 13:53:26.214611', job_id='515892', GAL2='1.11', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1631652806.21', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='-3.96e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='603' AND source_name='4FGL J1627.7+0251' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 13:53:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 515892: <4FGL_J1627.7+0251_daily_bin603> in cluster <slac> Done

Job <4FGL_J1627.7+0251_daily_bin603> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 14 13:40:35 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 13:40:38 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:40:38 2021
Terminated at Tue Sep 14 13:53:27 2021
Results reported at Tue Sep 14 13:53:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1627.7+0251_daily_bin603 246.942 2.8584 395625601 395884801 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 :                                   692.37 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             292.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   768 sec.
    Turnaround time :                            772 sec.

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

