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


Performing analysis on: 4FGL_J1627.7+0251_daily_bin975
RA = 246.942, Dec = 2.8584
tmin = 492048001, tmax = 492307201
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='517628', job_status='RUN', time_executed='2021-09-14 13:50:29.016582', time_epoch_executed='1631652629.02' WHERE source_name='4FGL J1627.7+0251' and cadence='daily' and bin_id='975'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/517628

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/517628/ft1_4FGL_J1627.7+0251_daily_bin975.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/517628/ft2_4FGL_J1627.7+0251_daily_bin975.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/517628/ft1_4FGL_J1627.7+0251_daily_bin975.fits outfile=/scratch/kocevski/517628/ft1_filteredMKT_4FGL_J1627.7+0251_daily_bin975.fits ra=246.942 dec=2.8584 rad=12.0 tmin=492048001.0 tmax=492307201.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 3.74
user 3.49
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/517628/ft1_filtered_4FGL_J1627.7+0251_daily_bin975.fits" evtable="EVENTS" scfile=/scratch/kocevski/517628/ft2_4FGL_J1627.7+0251_daily_bin975.fits sctable="SC_DATA" outfile=/scratch/kocevski/517628/ltcube_492048001_492307201_4FGL_J1627.7+0251_daily_bin975.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/517628/ft2_4FGL_J1627.7+0251_daily_bin975.fits
.....................!
real 12.84
user 12.38
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/517628/ft1_filtered_4FGL_J1627.7+0251_daily_bin975.fits evtable="EVENTS" scfile=/scratch/kocevski/517628/ft2_4FGL_J1627.7+0251_daily_bin975.fits sctable="SC_DATA" expcube=/scratch/kocevski/517628/ltcube_492048001_492307201_4FGL_J1627.7+0251_daily_bin975.fits outfile=/scratch/kocevski/517628/expmap_492048001_492307201_4FGL_J1627.7+0251_daily_bin975.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/517628/ltcube_492048001_492307201_4FGL_J1627.7+0251_daily_bin975.fits
.....................!
real 191.58
user 186.56
sys 4.31

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/517628/ft1_filtered_4FGL_J1627.7+0251_daily_bin975.fits scfile=/scratch/kocevski/517628/ft2_4FGL_J1627.7+0251_daily_bin975.fits outfile=/scratch/kocevski/517628/cmap_492048001_492307201_4FGL_J1627.7+0251_daily_bin975.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/517628/ft1_filtered_4FGL_J1627.7+0251_daily_bin975.fits scfile=/scratch/kocevski/517628/ft2_4FGL_J1627.7+0251_daily_bin975.fits outfile=/scratch/kocevski/517628/cmap_HighResolution_492048001_492307201_4FGL_J1627.7+0251_daily_bin975.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.60
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/517628/ft1_filtered_4FGL_J1627.7+0251_daily_bin975.fits evtable="EVENTS" scfile=/scratch/kocevski/517628/ft2_4FGL_J1627.7+0251_daily_bin975.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/517628/Model_4FGL_J1627.7+0251_daily_bin975.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/517628/ft1_filtered_4FGL_J1627.7+0251_daily_bin975.fits..............................!
real 17.66
user 16.24
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/517628/ft1_filtered_4FGL_J1627.7+0251_daily_bin975.fits', '/scratch/kocevski/517628/ft2_4FGL_J1627.7+0251_daily_bin975.fits', expMap='/scratch/kocevski/517628/expmap_492048001_492307201_4FGL_J1627.7+0251_daily_bin975.fits', expCube='/scratch/kocevski/517628/ltcube_492048001_492307201_4FGL_J1627.7+0251_daily_bin975.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/517628/Model_4FGL_J1627.7+0251_daily_bin975.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/517628/ft1_filtered_4FGL_J1627.7+0251_daily_bin975.fits
Spacecraft file(s): /scratch/kocevski/517628/ft2_4FGL_J1627.7+0251_daily_bin975.fits
Exposure map: /scratch/kocevski/517628/expmap_492048001_492307201_4FGL_J1627.7+0251_daily_bin975.fits
Exposure cube: /scratch/kocevski/517628/ltcube_492048001_492307201_4FGL_J1627.7+0251_daily_bin975.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/517628/Model_4FGL_J1627.7+0251_daily_bin975.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 402.393325416

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 400.905342223

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5523       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .19827E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    .10826E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.4205       1.0000         .10000E-03   10000.    
     5 'norm      '    3.8432       1.0000         .10000E-03   10000.    
     6 'norm      '    8.1296       1.0000         .10000E-03   10000.    
     7 'norm      '    7.3686       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.1711       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.4999       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.5699       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.0153       1.0000         .10000E-03   10000.    
    12 'Prefactor '    104.49       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .17728E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.0089       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.8444       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.3105       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.5243       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    19 'Prefactor '    .60318       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   400.8571     FROM MIGRAD    STATUS=CONVERGED    133 CALLS      285 TOTAL
                     EDM=   .14E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    797.33        .77748E-05** at limit **
   2  Prefactor     .10000E-03    75.087       -.80232E-06** at limit **
   3  norm          .10000E-03    185.06       -.18982E-05** at limit **
   4  Prefactor     7.4205        7332.9         .0000         .0000    
   5  norm          3.8432        7372.9         .0000         .0000    
   6  norm          8.1296        7326.2         .0000         .0000    
   7  norm          .10000E-03    7321.6       -.16428E-04** at limit **
   8  Prefactor     .10000E-03    737.65        .83525E-05** at limit **
   9  Prefactor     8.4999        7322.8         .0000         .0000    
  10  Prefactor     1.5699        7409.4         .0000         .0000    
  11  Prefactor     1.0153        7422.0         .0000         .0000    
  12  Prefactor     106.08        79.679        .16702E-05    .23423E-05
  13  Prefactor     .10000E-03    53.501       -.17767E-05** at limit **
  14  Prefactor     .10000E-03    6567.3        .21660E-03** at limit **
  15  Prefactor     1.8444        7404.0         .0000         .0000    
  16  Prefactor     1.3105        7414.9         .0000         .0000    
  17  Prefactor     485.27        1598.0        .14945E-04    .75097E-06
  18  Normalizat    .10000E-01    .72435       -.13682E-04** at limit **
  19  Prefactor     .59303        .15173       -.23951E-05    .21255E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.4205
  norm       = 3.84318
  norm       = 8.12965
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.49994
  Prefactor  = 1.56988
  Prefactor  = 1.01529
  Prefactor  = 106.084
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 1.84444
  Prefactor  = 1.31052
  Prefactor  = 485.271
  Normalizat = 0.01
  Prefactor  = 0.593027
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   400.8571     FROM HESSE     STATUS=FAILED        23 CALLS      308 TOTAL
                     EDM=   .14E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    795.07        .63893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    77.207        .91218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    184.74        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     509.82        502.37         .0000       -1.5163    
   5  norm          3.8432        1.0087         .0000       -1.5316    
   6  norm          8.1296        1.0019         .0000       -1.5138    
   7  norm          .10000E-03    .34111E-01   -.16428E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .40806E-01    .83525E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.4999        1.0017         .0000       -1.5125    
  10  Prefactor     1.5699        1.0627         .0000       -1.5457    
  11  Prefactor     1.0153        1.3061         .0000       -1.5506    
  12  Prefactor     106.08        1.0075        .16702E-05   -1.3644    
  13  Prefactor     .10000E-03    .25842       -.17767E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .43790        .21660E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.8444        1.0425         .0000       -1.5436    
  16  Prefactor     1.3105        1.1022         .0000       -1.5479    
  17  Prefactor     485.27        7.3756        .14945E-04   -1.1266    
  18  Normalizat    .10000E-01    .25755       -.13682E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .59303        .94359       -.23951E-05   -1.0788    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.38501e-12
Minuit parameter uncertainties:
  1  0.000377058
  2  4.69894e-05
  3  3.45705e-05
  4  1.00229
  5  1.00872
  6  1.0019
  7  2.6228e-06
  8  5.55209e-06
  9  1.00174
  10  1.06273
  11  1.30611
  12  1.00753
  13  1.49274e-07
  14  9.29909e-05
  15  1.0425
  16  1.1022
  17  7.37562
  18  4.80237e-07
  19  0.970682
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 400.857112593

Extracting fit parameters...

4FGL J1627.7+0251
   Spectrum: PowerLaw
271    Prefactor:  1.000e-04  5.552e-06  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:  5.930e-01  9.707e-01  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.000e-02  4.802e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 246.942 2.858
Photon Flux Upper Limit: 2.46e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.87e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/517628/likelihoodResults_492048001_492307201_4FGL_J1627.7+0251_daily_bin975.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): 102
logL (Free Index) = 400.857120168
delta logL = -7.57507149274e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 400.857119161
delta logL = -6.5685698587e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96247E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1874       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59303       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=   400.8571     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      212 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1113.7        .90724E-02** at limit **
   2  Index         2.1535        6.0445        .50000        .35354E-06
   3  Normalizat    .10000E-01    .18440E-02    .23958    ** at limit **
   4  Prefactor     .59303        .72984E-02    .25220E-01   -.50894E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.15353
  Normalizat = 0.01
  Prefactor  = 0.593027
 **********
 **   18 **HESSE 
 **********

 FCN=   400.8571     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      245 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7355.9        .18145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1535        5.3206        .50000       -.60565    
   3  Normalizat    .10000E-01    .10791E-01    .98021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .59303        .16323E-01    .11147E-03   -1.0788    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.26292e-08
Minuit parameter uncertainties:
  1  0.00345634
  2  2074.8
  3  2.53831e-09
  4  0.0163235
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/517628': 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): 102
logL (Free Index) = 400.85711259
delta logL = 3.00434521705e-09

Extracting fit parameters...

4FGL J1627.7+0251
   Spectrum: PowerLaw
271    Prefactor:  1.000e-04  3.456e-03  1.000e-04  1.000e+04 ( 1.000e-14)
272        Index:  2.154e+00  2.075e+03  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:  5.930e-01  1.632e-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.000e-02  2.538e-09  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/517628/cmap_HighResolution_492048001_492307201_4FGL_J1627.7+0251_daily_bin975.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.87e-01', job_status='DONE', photon_flux_upper_limit='2.46e-06', time_completed='2021-09-14 13:55:56.046598', job_id='517628', GAL2='0.59', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631652956.05', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.59', dlogl='3.00e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='975' AND source_name='4FGL J1627.7+0251' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 13:55:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 517628: <4FGL_J1627.7+0251_daily_bin975> in cluster <slac> Done

Job <4FGL_J1627.7+0251_daily_bin975> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep 14 13:46:00 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 13:46:46 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:46:46 2021
Terminated at Tue Sep 14 13:55:56 2021
Results reported at Tue Sep 14 13:55:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1627.7+0251_daily_bin975 246.942 2.8584 492048001 492307201 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 :                                   324.10 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             208.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   550 sec.
    Turnaround time :                            596 sec.

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

