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


Performing analysis on: 4FGL_J1627.7+0251_daily_bin177
RA = 246.942, Dec = 2.8584
tmin = 285206401, tmax = 285465601
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='511555', job_status='RUN', time_executed='2021-09-14 13:27:40.174549', time_epoch_executed='1631651260.17' WHERE source_name='4FGL J1627.7+0251' and cadence='daily' and bin_id='177'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/511555

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/511555/ft1_4FGL_J1627.7+0251_daily_bin177.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/511555/ft2_4FGL_J1627.7+0251_daily_bin177.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/511555/ft1_4FGL_J1627.7+0251_daily_bin177.fits outfile=/scratch/kocevski/511555/ft1_filteredMKT_4FGL_J1627.7+0251_daily_bin177.fits ra=246.942 dec=2.8584 rad=12.0 tmin=285206401.0 tmax=285465601.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.47
user 3.27
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/511555/ft1_filtered_4FGL_J1627.7+0251_daily_bin177.fits" evtable="EVENTS" scfile=/scratch/kocevski/511555/ft2_4FGL_J1627.7+0251_daily_bin177.fits sctable="SC_DATA" outfile=/scratch/kocevski/511555/ltcube_285206401_285465601_4FGL_J1627.7+0251_daily_bin177.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/511555/ft2_4FGL_J1627.7+0251_daily_bin177.fits
.....................!
real 15.19
user 13.00
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/511555/ft1_filtered_4FGL_J1627.7+0251_daily_bin177.fits evtable="EVENTS" scfile=/scratch/kocevski/511555/ft2_4FGL_J1627.7+0251_daily_bin177.fits sctable="SC_DATA" expcube=/scratch/kocevski/511555/ltcube_285206401_285465601_4FGL_J1627.7+0251_daily_bin177.fits outfile=/scratch/kocevski/511555/expmap_285206401_285465601_4FGL_J1627.7+0251_daily_bin177.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/511555/ltcube_285206401_285465601_4FGL_J1627.7+0251_daily_bin177.fits
.....................!
real 193.51
user 185.40
sys 4.61

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/511555/ft1_filtered_4FGL_J1627.7+0251_daily_bin177.fits scfile=/scratch/kocevski/511555/ft2_4FGL_J1627.7+0251_daily_bin177.fits outfile=/scratch/kocevski/511555/cmap_285206401_285465601_4FGL_J1627.7+0251_daily_bin177.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 1.11
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/511555/ft1_filtered_4FGL_J1627.7+0251_daily_bin177.fits scfile=/scratch/kocevski/511555/ft2_4FGL_J1627.7+0251_daily_bin177.fits outfile=/scratch/kocevski/511555/cmap_HighResolution_285206401_285465601_4FGL_J1627.7+0251_daily_bin177.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.69
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.956       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.6104       1.0000         .10000E-03   10000.    
     3 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.7401       1.0000         .10000E-03   10000.    
     5 'norm      '    6.4644       1.0000         .10000E-03   10000.    
     6 'norm      '    .10229E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10103E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .19572E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .17946       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .23104E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    37.841       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.2827       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.001       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .17877E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    71.790       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .89525       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0383       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7758.986     FROM MIGRAD    STATUS=CONVERGED    699 CALLS     2505 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.954        31.565        .10027E-03    .58960E-05
   2  Prefactor     3.6099        5.4806        .10632E-02   -.78419E-04
   3  norm          .10000E-03    2.4310        .13329E-02** at limit **
   4  Prefactor     5.9247        250.05        .16765E-03   -.48826E-05
   5  norm          6.4639        2.4532        .82268E-04   -.71307E-04
   6  norm          .10000E-03    9.1866        .18142E-02** at limit **
   7  norm          .10000E-03    39.498        .18142E-02** at limit **
   8  Prefactor     .10000E-03    59.094        .18142E-02** at limit **
   9  Prefactor     .10000E-03    13.540        .18142E-02** at limit **
  10  Prefactor     .10000E-03    2.5616        .13758E-02** at limit **
  11  Prefactor     .18097        26.181        .33509E-02    .11323E-03
  12  Prefactor     .10000E-03    136.76        .36285E-03** at limit **
  13  Prefactor     37.874        47.707        .65154E-04    .86582E-04
  14  Prefactor     4.2818        6.6990        .19468E-03   -.12964E-04
  15  Prefactor     11.002        7.3994        .12079E-03   -.16470E-04
  16  Prefactor     .40354E-01    12.295        .75016E-01    .13373E-03
  17  Prefactor     71.962        218.93        .23690E-03   -.93577E-05
  18  Normalizat    .89521        .33074        .49784E-03    .29207E-04
  19  Prefactor     1.0383        .10042        .14461E-03    .18697E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.9541
  Prefactor  = 3.60988
  norm       = 0.0001
  Prefactor  = 5.92466
  norm       = 6.4639
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.18097
  Prefactor  = 0.0001
  Prefactor  = 37.8739
  Prefactor  = 4.28179
  Prefactor  = 11.002
  Prefactor  = 0.0403536
  Prefactor  = 71.9617
  Normalizat = 0.895215
  Prefactor  = 1.03835
 **********
 **   18 **HESSE 
 **********

 FCN=   7758.986     FROM HESSE     STATUS=OK           262 CALLS     2767 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.954        31.557        .40107E-05   -1.4909    
   2  Prefactor     3.6099        5.4760        .42529E-04   -1.5328    
   3  norm          .10000E-03    2.4316        .26658E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.9247        250.38        .67059E-05   -1.5221    
   5  norm          6.4639        2.4532        .32907E-05   -1.5199    
   6  norm          .10000E-03    9.1889        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    39.498        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    59.097        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.541        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.5617        .27516E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .18097        26.860        .13404E-03   -1.5623    
  12  Prefactor     .10000E-03    136.76        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     37.874        47.702        .13031E-04   -1.4476    
  14  Prefactor     4.2818        6.6978        .77872E-05   -1.5294    
  15  Prefactor     11.002        7.3979        .48317E-05   -1.5044    
  16  Prefactor     .40354E-01    11.180        .79754E-01   -1.5668    
  17  Prefactor     71.962        218.93        .94762E-05   -1.4009    
  18  Normalizat    .89521        .33064        .19914E-04   -.96628    
  19  Prefactor     1.0383        .10044        .28923E-04   -.91462    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39818e-10
Minuit parameter uncertainties:
  1  31.5902
  2  5.4768
  3  6.21913e-06
  4  77.3777
  5  2.45328
  6  7.81304e-06
  7  9.9791e-06
  8  6.45199e-05
  9  4.0788e-06
  10  6.09005e-07
  11  4.41025
  12  0.000370164
  13  47.7503
  14  6.69902
  15  7.39849
  16  1.34196
  17  221.455
  18  0.331388
  19  0.100454
Done.

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

Extracting fit parameters...

4FGL J1627.7+0251
   Spectrum: PowerLaw
271    Prefactor:  1.000e-04  6.452e-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.038e+00  1.005e-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:  8.952e-01  3.314e-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: 8.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/511555/likelihoodResults_285206401_285465601_4FGL_J1627.7+0251_daily_bin177.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) = 7758.98604197
delta logL = -8.05318713901e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7758.98596144
delta logL = 7.00856617186e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2408       1.0000          .0000       10.000    
     3 'Normalizat'    .89521       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0383       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=   7758.986     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      243 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    77.791        .90712E-02** at limit **
   2  Index         2.2449        6.0865        .50000       -.59854E-06
   3  Normalizat    .89522        .27491        .11229        .37450E-04
   4  Prefactor     1.0383        .86051E-01    .40646E-01    .91601E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.24493
  Normalizat = 0.895215
  Prefactor  = 1.03835
 **********
 **   18 **HESSE 
 **********

 FCN=   7758.986     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      276 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8796.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2449        6.0166        .50000       -.58358    
   3  Normalizat    .89522        .15117        .49789E-03   -.96628    
   4  Prefactor     1.0383        .47441E-01    .14461E-03   -.91462    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.0743e-11
Minuit parameter uncertainties:
  1  0.000449034
  2  57.7707
  3  0.15124
  4  0.0474432
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/511555': 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) = 7758.98596143
delta logL = 7.97626853455e-09

Extracting fit parameters...

4FGL J1627.7+0251
   Spectrum: PowerLaw
271    Prefactor:  1.000e-04  4.490e-04  1.000e-04  1.000e+04 ( 1.000e-14)
272        Index:  2.245e+00  5.777e+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.038e+00  4.744e-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:  8.952e-01  1.512e-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/511555/cmap_HighResolution_285206401_285465601_4FGL_J1627.7+0251_daily_bin177.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.76e-03', job_status='DONE', photon_flux_upper_limit='8.88e-08', time_completed='2021-09-14 13:39:34.660283', job_id='511555', GAL2='1.04', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1631651974.66', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='7.98e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='177' AND source_name='4FGL J1627.7+0251' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 13:39:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 511555: <4FGL_J1627.7+0251_daily_bin177> in cluster <slac> Done

Job <4FGL_J1627.7+0251_daily_bin177> 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) <bullet0163>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 13:25:39 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:39 2021
Terminated at Tue Sep 14 13:39:35 2021
Results reported at Tue Sep 14 13:39:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1627.7+0251_daily_bin177 246.942 2.8584 285206401 285465601 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 :                                   696.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             293.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            952 sec.

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

