/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 19 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 = 7440
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1627.7+0251_daily_bin174
RA = 246.942, Dec = 2.8584
tmin = 284428801, tmax = 284688001
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='511550', job_status='RUN', time_executed='2021-09-14 13:26:50.904744', time_epoch_executed='1631651210.9' WHERE source_name='4FGL J1627.7+0251' and cadence='daily' and bin_id='174'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/511550

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/511550/ft1_4FGL_J1627.7+0251_daily_bin174.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/511550/ft2_4FGL_J1627.7+0251_daily_bin174.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/511550/ft1_4FGL_J1627.7+0251_daily_bin174.fits outfile=/scratch/kocevski/511550/ft1_filteredMKT_4FGL_J1627.7+0251_daily_bin174.fits ra=246.942 dec=2.8584 rad=12.0 tmin=284428801.0 tmax=284688001.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 2.86
user 2.64
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/511550/ft1_filtered_4FGL_J1627.7+0251_daily_bin174.fits" evtable="EVENTS" scfile=/scratch/kocevski/511550/ft2_4FGL_J1627.7+0251_daily_bin174.fits sctable="SC_DATA" outfile=/scratch/kocevski/511550/ltcube_284428801_284688001_4FGL_J1627.7+0251_daily_bin174.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/511550/ft2_4FGL_J1627.7+0251_daily_bin174.fits
.....................!
real 10.56
user 10.26
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/511550/ft1_filtered_4FGL_J1627.7+0251_daily_bin174.fits evtable="EVENTS" scfile=/scratch/kocevski/511550/ft2_4FGL_J1627.7+0251_daily_bin174.fits sctable="SC_DATA" expcube=/scratch/kocevski/511550/ltcube_284428801_284688001_4FGL_J1627.7+0251_daily_bin174.fits outfile=/scratch/kocevski/511550/expmap_284428801_284688001_4FGL_J1627.7+0251_daily_bin174.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/511550/ltcube_284428801_284688001_4FGL_J1627.7+0251_daily_bin174.fits
.....................!
real 155.84
user 151.68
sys 3.84

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/511550/ft1_filtered_4FGL_J1627.7+0251_daily_bin174.fits scfile=/scratch/kocevski/511550/ft2_4FGL_J1627.7+0251_daily_bin174.fits outfile=/scratch/kocevski/511550/cmap_284428801_284688001_4FGL_J1627.7+0251_daily_bin174.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.47
user 0.32
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/511550/ft1_filtered_4FGL_J1627.7+0251_daily_bin174.fits scfile=/scratch/kocevski/511550/ft2_4FGL_J1627.7+0251_daily_bin174.fits outfile=/scratch/kocevski/511550/cmap_HighResolution_284428801_284688001_4FGL_J1627.7+0251_daily_bin174.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 1.04
user 0.32
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/511550/ft1_filtered_4FGL_J1627.7+0251_daily_bin174.fits evtable="EVENTS" scfile=/scratch/kocevski/511550/ft2_4FGL_J1627.7+0251_daily_bin174.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/511550/Model_4FGL_J1627.7+0251_daily_bin174.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/511550/ft1_filtered_4FGL_J1627.7+0251_daily_bin174.fits.....................!
real 71.54
user 70.00
sys 1.07

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .75668E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.2180       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.5317       1.0000         .10000E-03   10000.    
     6 'norm      '    55.073       1.0000         .10000E-03   10000.    
     7 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    73.384       1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.172       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .53138       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.7650       1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.863       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13250E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1440       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .98400       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   10021.23     FROM MIGRAD    STATUS=FAILED       705 CALLS     2287 TOTAL
                     EDM=   .64E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.257        .14885    ** at limit **
   2  Prefactor     .10000E-03    2.1228        .14153E-02** at limit **
   3  norm          6.2172        4.7061        .80493E-03    .22279E-03
   4  Prefactor     .10000E-03    51.692        .18142E-02** at limit **
   5  norm          4.5317        2.0420        .93477E-04   -.44270E-04
   6  norm          55.071        19.764        .54052E-04   -.63099E-05
   7  norm          .10000E-03    65.345        .18142E-02** at limit **
   8  Prefactor     73.393        98.718        .46867E-04    .30079E-05
   9  Prefactor     24.162        29.841        .81474E-04   -.13954E-04
  10  Prefactor     .53020        20.611        .43368E-02    .27879E-02
  11  Prefactor     .10000E-03    3.3601        .17886E-02** at limit **
  12  Prefactor     .10000E-03    13.941        .18142E-02** at limit **
  13  Prefactor     .10000E-03    25.605        .18142E-02** at limit **
  14  Prefactor     4.7661        5.8347        .92159E-03    .40462E-04
  15  Prefactor     16.862        7.7250        .97534E-04   -.25644E-05
  16  Prefactor     .10000E-03    5.6180        .18142E-02** at limit **
  17  Prefactor     .10000E-03    495.24        .18142E-02** at limit **
  18  Normalizat    1.1441        .32592        .49268E-03    .29629E-04
  19  Prefactor     .98398        .88343E-01    .15203E-03    .41972E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   10021.23     FROM SIMPLEX   STATUS=UNCHANGED    968 CALLS     3255 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.257        .10291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.1228        .23507E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.2172        4.7061        .11070E-06   -1.5209    
   4  Prefactor     .10000E-03    51.692        .12233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.5317        2.0420        .11117E-06   -1.5282    
   6  norm          55.071        19.764        .10346E-06   -1.4222    
   7  norm          .10000E-03    65.345        .44406E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     73.393        98.718        .10188E-06   -1.3992    
   9  Prefactor     24.162        29.841        .10726E-06   -1.4724    
  10  Prefactor     .53020        20.611        .11395E-06   -1.5562    
  11  Prefactor     .10000E-03    3.3601        .23959E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.941        .15223E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    25.605        .53514E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.7661        5.8347        .11112E-06   -1.5271    
  15  Prefactor     16.862        7.7250        .10832E-06   -1.4886    
  16  Prefactor     .10000E-03    5.6180        .90196E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    495.24        .52645E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1441        .32592        .64257E-07   -.88347    
  19  Prefactor     .98398        .88343E-01    .67841E-07   -.93265    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10021.23     FROM MIGRAD    STATUS=CONVERGED    267 CALLS     3522 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.237        .14894    ** at limit **
   2  Prefactor     .10000E-03    2.1234        .28307E-03** at limit **
   3  norm          6.2172        4.7052        .16099E-03   -.66382E-05
   4  Prefactor     .10000E-03    51.696        .36285E-03** at limit **
   5  norm          4.5317        2.0420        .37391E-05   -.12162E-05
   6  norm          55.071        19.768        .21621E-05   -.21033E-05
   7  norm          .10000E-03    65.346        .36285E-03** at limit **
   8  Prefactor     73.393        98.734        .93734E-05   -.48514E-06
   9  Prefactor     24.162        29.766        .32590E-05   -.69769E-05
  10  Prefactor     .53031        20.635        .86737E-03    .11748E-03
  11  Prefactor     .10000E-03    3.3605        .35773E-03** at limit **
  12  Prefactor     .10000E-03    13.945        .36285E-03** at limit **
  13  Prefactor     .10000E-03    25.608        .36285E-03** at limit **
  14  Prefactor     4.7661        5.8323        .36864E-04   -.18504E-05
  15  Prefactor     16.862        7.7245        .39013E-05   -.58281E-05
  16  Prefactor     .10000E-03    5.6193        .36285E-03** at limit **
  17  Prefactor     .10000E-03    495.29        .36285E-03** at limit **
  18  Normalizat    1.1441        .32597        .19707E-04   -.66918E-05
  19  Prefactor     .98398        .88389E-01    .30406E-04   -.16751E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.21718
  Prefactor  = 0.0001
  norm       = 4.53166
  norm       = 55.0709
  norm       = 0.0001
  Prefactor  = 73.393
  Prefactor  = 24.162
  Prefactor  = 0.530305
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.76609
  Prefactor  = 16.8617
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.14413
  Prefactor  = 0.983979
 **********
 **   18 **HESSE 
 **********

 FCN=   10021.23     FROM HESSE     STATUS=OK           260 CALLS     3782 TOTAL
                     EDM=   .25E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.239        .14892       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.1234        .56614E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.2172        4.7050        .64395E-05   -1.5209    
   4  Prefactor     .10000E-03    51.696        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.5317        2.0417        .74782E-06   -1.5282    
   6  norm          55.071        19.770        .43241E-06   -1.4222    
   7  norm          .10000E-03    65.346        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     73.393        99.173        .18747E-05   -1.3992    
   9  Prefactor     24.162        30.162        .65179E-06   -1.4724    
  10  Prefactor     .53031        20.621        .17347E-03   -1.5562    
  11  Prefactor     .10000E-03    3.3605        .71546E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.946        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    25.608        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.7661        5.8352        .14745E-05   -1.5271    
  15  Prefactor     16.862        7.7259        .78027E-06   -1.4886    
  16  Prefactor     .10000E-03    5.6193        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    495.29        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1441        .32557        .39414E-05   -.88347    
  19  Prefactor     .98398        .88370E-01    .60812E-05   -.93265    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.45869e-13
Minuit parameter uncertainties:
  1  0.000124945
  2  1.81335e-08
  3  4.70526
  4  3.18475e-07
  5  2.04172
  6  19.7721
  7  4.30987e-07
  8  99.397
  9  30.181
  10  6.61556
  11  3.32409e-07
  12  1.15261e-06
  13  1.34733e-06
  14  5.83587
  15  7.72631
  16  4.98814e-08
  17  2.25088e-05
  18  0.326144
  19  0.0883832
Done.

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

Extracting fit parameters...

4FGL J1627.7+0251
   Spectrum: PowerLaw
271    Prefactor:  7.339e+01  9.940e+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:  9.840e-01  8.838e-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.144e+00  3.261e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/511550/likelihoodResults_284428801_284688001_4FGL_J1627.7+0251_daily_bin174.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) = 10020.0384013
delta logL = 1.19228492025

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10020.0016395
delta logL = 1.22904670383

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.883       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3614       1.0000          .0000       10.000    
     3 'Normalizat'    1.0176       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0044       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   10020.00     FROM MIGRAD    STATUS=FAILED       107 CALLS      329 TOTAL
                     EDM=   .92E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.822        292.10        .50248E-03   -.25159E-04
   2  Index         3.3631        3.2004        .42923E-02    .12762E-02
   3  Normalizat    1.0177        .29874        .51893E-03   -.43816E-05
   4  Prefactor     1.0044        .84828E-01    .15059E-03   -.89082E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   10020.00     FROM SIMPLEX   STATUS=UNCHANGED     93 CALLS      422 TOTAL
                     EDM=   .65E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.822        292.10        .30068E-03   -.25159E-04
   2  Index         3.3631        3.2004        .74637E-03    .12762E-02
   3  Normalizat    1.0177        .29874        .17134E-03   -.43816E-05
   4  Prefactor     1.0044        .84828E-01    .60898E-04   -.89082E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10020.00     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      452 TOTAL
                     EDM=   .64E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.822        39.893        .20099E-04   -.27376E-04
   2  Index         3.3631        1.0192        .85845E-03   -.10330E-04
   3  Normalizat    1.0177        .31632        .20757E-04   -.46007E-05
   4  Prefactor     1.0044        .89084E-01    .60237E-05   -.90592E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.8215
  Index      = 3.36307
  Normalizat = 1.01768
  Prefactor  = 1.00442
 **********
 **   18 **HESSE 
 **********

 FCN=   10020.00     FROM HESSE     STATUS=OK            23 CALLS      475 TOTAL
                     EDM=   .48E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.822        33.996        .40199E-05   -1.4912    
   2  Index         3.3631        .86963        .34338E-04   -.33353    
   3  Normalizat    1.0177        .31668        .41514E-05   -.92441    
   4  Prefactor     1.0044        .89126E-01    .12047E-05   -.92582    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.76684e-13
Minuit parameter uncertainties:
  1  34.038
  2  0.874613
  3  0.317264
  4  0.0891387
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/511550': 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) = 10020.0016375
delta logL = 1.22904871865

Extracting fit parameters...

4FGL J1627.7+0251
   Spectrum: PowerLaw
271    Prefactor:  1.582e+01  3.404e+01  1.000e-04  1.000e+04 ( 1.000e-14)
272        Index:  3.363e+00  8.746e-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.004e+00  8.914e-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.018e+00  3.173e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.40
Ra Dec: 246.942 2.858
Photon Index (Free Index): 3.36 +/- 0.87
Photon Flux (Free Index): 1.43e-07 +/- 9.60e-08
Energy Flux (Free Index): 2.48e-05 +/- 1.63e-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/511550/cmap_HighResolution_284428801_284688001_4FGL_J1627.7+0251_daily_bin174.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-02', comment='SUCCESS', energy_flux2='2.48e-05', dlogl='1.23e+00', photon_flux2='1.43e-07', job_status='DONE', time_completed='2021-09-14 13:39:32.198748', photon_index_error2='0.87', photon_index2='3.36', ts='0.69', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.56e-07', energy_flux_error2='1.63e-05', EG='1.14', time_epoch_completed='1631651972.2', return_code='0', job_id='511550', GAL2='1.00', EG2='1.02', return_code2='0', photon_flux_error2='9.60e-08', ts2='3.40', photon_index='2.19' WHERE bin_id='174' AND source_name='4FGL J1627.7+0251' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 13:39:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 511550: <4FGL_J1627.7+0251_daily_bin174> in cluster <slac> Done

Job <4FGL_J1627.7+0251_daily_bin174> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 14 13:23:43 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 13:25: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:25:38 2021
Terminated at Tue Sep 14 13:39:33 2021
Results reported at Tue Sep 14 13:39:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1627.7+0251_daily_bin174 246.942 2.8584 284428801 284688001 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 :                                   762.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             349.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   834 sec.
    Turnaround time :                            950 sec.

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

