aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 60 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7463
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1627.7+0251_daily_bin1713
RA = 246.942, Dec = 2.8584
tmin = 683337601, tmax = 683596801
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='169973', job_status='RUN', time_executed='2022-09-16 19:37:49.524119', time_epoch_executed='1663382269.52' WHERE source_name='4FGL J1627.7+0251' and cadence='daily' and bin_id='1713'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/169973

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/169973/ft1_4FGL_J1627.7+0251_daily_bin1713.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/169973/ft2_4FGL_J1627.7+0251_daily_bin1713.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/169973/ft1_4FGL_J1627.7+0251_daily_bin1713.fits outfile=/scratch/kocevski/169973/ft1_filteredMKT_4FGL_J1627.7+0251_daily_bin1713.fits ra=246.942 dec=2.8584 rad=12.0 tmin=683337601.0 tmax=683596801.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.66
user 3.26
sys 0.23

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

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

Number of photons that the gtmktime cut: 946

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/169973/ft1_filtered_4FGL_J1627.7+0251_daily_bin1713.fits" evtable="EVENTS" scfile=/scratch/kocevski/169973/ft2_4FGL_J1627.7+0251_daily_bin1713.fits sctable="SC_DATA" outfile=/scratch/kocevski/169973/ltcube_683337601_683596801_4FGL_J1627.7+0251_daily_bin1713.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/169973/ft2_4FGL_J1627.7+0251_daily_bin1713.fits
.....................!
real 14.21
user 13.77
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/169973/ft1_filtered_4FGL_J1627.7+0251_daily_bin1713.fits evtable="EVENTS" scfile=/scratch/kocevski/169973/ft2_4FGL_J1627.7+0251_daily_bin1713.fits sctable="SC_DATA" expcube=/scratch/kocevski/169973/ltcube_683337601_683596801_4FGL_J1627.7+0251_daily_bin1713.fits outfile=/scratch/kocevski/169973/expmap_683337601_683596801_4FGL_J1627.7+0251_daily_bin1713.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/169973/ltcube_683337601_683596801_4FGL_J1627.7+0251_daily_bin1713.fits
.....................!
real 192.19
user 186.68
sys 5.10

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/169973/ft1_filtered_4FGL_J1627.7+0251_daily_bin1713.fits scfile=/scratch/kocevski/169973/ft2_4FGL_J1627.7+0251_daily_bin1713.fits outfile=/scratch/kocevski/169973/cmap_683337601_683596801_4FGL_J1627.7+0251_daily_bin1713.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/169973/ft1_filtered_4FGL_J1627.7+0251_daily_bin1713.fits scfile=/scratch/kocevski/169973/ft2_4FGL_J1627.7+0251_daily_bin1713.fits outfile=/scratch/kocevski/169973/cmap_HighResolution_683337601_683596801_4FGL_J1627.7+0251_daily_bin1713.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/169973/ft1_filtered_4FGL_J1627.7+0251_daily_bin1713.fits evtable="EVENTS" scfile=/scratch/kocevski/169973/ft2_4FGL_J1627.7+0251_daily_bin1713.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/169973/Model_4FGL_J1627.7+0251_daily_bin1713.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/169973/ft1_filtered_4FGL_J1627.7+0251_daily_bin1713.fits.....................!
real 88.24
user 86.60
sys 1.47

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/169973/ft1_filtered_4FGL_J1627.7+0251_daily_bin1713.fits', '/scratch/kocevski/169973/ft2_4FGL_J1627.7+0251_daily_bin1713.fits', expMap='/scratch/kocevski/169973/expmap_683337601_683596801_4FGL_J1627.7+0251_daily_bin1713.fits', expCube='/scratch/kocevski/169973/ltcube_683337601_683596801_4FGL_J1627.7+0251_daily_bin1713.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/169973/Model_4FGL_J1627.7+0251_daily_bin1713.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  0.000e+00  1.000e+06 ( 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/169973/ft1_filtered_4FGL_J1627.7+0251_daily_bin1713.fits
Spacecraft file(s): /scratch/kocevski/169973/ft2_4FGL_J1627.7+0251_daily_bin1713.fits
Exposure map: /scratch/kocevski/169973/expmap_683337601_683596801_4FGL_J1627.7+0251_daily_bin1713.fits
Exposure cube: /scratch/kocevski/169973/ltcube_683337601_683596801_4FGL_J1627.7+0251_daily_bin1713.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/169973/Model_4FGL_J1627.7+0251_daily_bin1713.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 10066.0676659

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29431E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    2.9229       1.0000          .0000       .10000E+07
     3 'norm      '    .97700E-08   1.0000          .0000       .10000E+07
     4 'Prefactor '    .86070E-04   1.0000          .0000       .10000E+07
     5 'norm      '    3.3140       1.0000          .0000       .10000E+07
     6 'norm      '    77.774       1.0000          .0000       .10000E+07
     7 'Prefactor '    15.785       1.0000          .0000       .10000E+07
     8 'Prefactor '    .12469E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    3.0506       1.0000          .0000       .10000E+07
    10 'Prefactor '    .86737E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    17.719       1.0000          .0000       .10000E+07
    12 'Prefactor '    .33973E-07   1.0000          .0000       .10000E+07
    13 'Prefactor '    .23531E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    7.3328       1.0000          .0000       .10000E+07
    15 'Prefactor '    .36009E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .88278E-01   1.0000          .0000       .10000E+07
    17 'Normalizat'    1.3134       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0032       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=   10065.06     FROM MIGRAD    STATUS=CONVERGED    160 CALLS      874 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .18387E-03    19.220       -.39326E-05** at limit **
   2  Prefactor     2.9734        5.5127        .31904E-06    .76226E-03
   3  norm           .0000        1.8325       -.74031E-06** at limit **
   4  Prefactor     .56510E-07    17.437        .10279E-05** at limit **
   5  norm          3.3173        1.7415        .16106E-07   -.75719E-03
   6  norm          77.582        21.695       -.77576E-06    .11944E-01
   7  Prefactor     30.254        98.268       -.12107E-04   -.60529E-03
   8  Prefactor     .60840E-07    16.910        .73900E-07** at limit **
   9  Prefactor     3.0232        6.5597       -.10543E-05    .60742E-04
  10  Prefactor      .0000        5.4024        .31734E-08** at limit **
  11  Prefactor     17.748        6.0233        .16165E-06    .64406E-01
  12  Prefactor     .66613E-09    12.089        .42772E-07** at limit **
  13  Prefactor      .0000        3.4521        .55980E-07** at limit **
  14  Prefactor     7.3635        6.6323        .12102E-06   -.16578E-02
  15  Prefactor     .42183E-06    179.67       -.99882E-05** at limit **
  16  Prefactor     .11102E-09    49.510        .83537E-06** at limit **
  17  Normalizat    1.3056        .32820        .66235E-05   -.13129E-03
  18  Prefactor     1.0036        .90736E-01   -.25126E-05   -.17992E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000183865
  Prefactor  = 2.9734
  norm       = 0
  Prefactor  = 5.65104e-08
  norm       = 3.31734
  norm       = 77.5824
  Prefactor  = 30.2537
  Prefactor  = 6.08402e-08
  Prefactor  = 3.02319
  Prefactor  = 0
  Prefactor  = 17.7476
  Prefactor  = 6.66134e-10
  Prefactor  = 0
  Prefactor  = 7.36351
  Prefactor  = 4.21829e-07
  Prefactor  = 1.11022e-10
  Normalizat = 1.30564
  Prefactor  = 1.00358
 **********
 **   18 **HESSE 
 **********

 FCN=   10065.06     FROM HESSE     STATUS=OK           290 CALLS     1164 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .18387E-03    15.760        .16481E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.9734        5.5217        .59395E-03   -1.5673    
   3  norm           .0000        1.8435        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .56510E-07    18.397        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.3173        1.7433        .55584E-03   -1.5672    
   6  norm          77.582        21.865        .11340E-03   -1.5532    
   7  Prefactor     30.254        98.052        .25183E-03   -1.5598    
   8  Prefactor     .60840E-07    17.752        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.0232        6.5935        .58061E-03   -1.5673    
  10  Prefactor      .0000        5.3910        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.748        18.594        .23766E-03   -1.5624    
  12  Prefactor     .66613E-09    12.136        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        3.4458        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.3635        6.6300        .37016E-03   -1.5654    
  15  Prefactor     .42183E-06    6.5412        .71345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .11102E-09    49.653        .14255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.3056        .28370        .10600       -.83398    
  18  Prefactor     1.0036        .78324E-01    .44626E-01   -.92610    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09959e-07
Minuit parameter uncertainties:
  1  0.107662
  2  5.52168
  3  1.0734e-05
  4  0.00203907
  5  1.74327
  6  21.8653
  7  98.0568
  8  0.00207865
  9  6.59353
  10  1.40369e-05
  11  18.5943
  12  0.000178965
  13  6.56529e-06
  14  6.63003
  15  0.00332227
  16  0.000146041
  17  0.284037
  18  0.0783329
Done.

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

Extracting fit parameters...

4FGL J1627.7+0251
   Spectrum: PowerLaw
271    Prefactor:  3.025e+01  9.806e+01  0.000e+00  1.000e+06 ( 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.004e+00  7.833e-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.306e+00  2.840e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/169973/likelihoodResults_683337601_683596801_4FGL_J1627.7+0251_daily_bin1713.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) = 10064.440732
delta logL = 0.621013141097

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10064.3882319
delta logL = 0.673513264999

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1964       1.0000          .0000       .10000E+07
     2 'Index     '    3.7344       1.0000          .0000       10.000    
     3 'Normalizat'    1.2018       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0205       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=   10064.39     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      286 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1359        80.593        .49171E-03    .77608E-02
   2  Index         3.7412        2.5589        .91594E-01    .33030E-03
   3  Normalizat    1.2020        .88591E-01    .10987        .31276E-04
   4  Prefactor     1.0205        .25409E-01    .42093E-01   -.11502E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.13586
  Index      = 3.7412
  Normalizat = 1.202
  Prefactor  = 1.02055
 **********
 **   18 **HESSE 
 **********

 FCN=   10064.39     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      319 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1359        154.42        .17204E-04   -1.5667    
   2  Index         3.7412        3.9785        .53323E-02   -.25450    
   3  Normalizat    1.2020        .25615        .48709E-03   -.86541    
   4  Prefactor     1.0205        .74627E-01    .15380E-03   -.92048    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.32825e-09
Minuit parameter uncertainties:
  1  50.5454
  2  4.67078
  3  0.256416
  4  0.0746345
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/169973': 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) = 10064.3882165
delta logL = 0.673528670324

Extracting fit parameters...

4FGL J1627.7+0251
   Spectrum: PowerLaw
271    Prefactor:  4.136e+00  5.055e+01  0.000e+00  1.000e+06 ( 1.000e-14)
272        Index:  3.741e+00  4.671e+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.021e+00  7.463e-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.202e+00  2.564e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.60
Ra Dec: 246.942 2.858
Photon Index (Free Index): 3.74 +/- 4.67
Photon Flux (Free Index): 9.89e-08 +/- 8.58e-08
Energy Flux (Free Index): 1.55e-05 +/- 2.09e-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/169973/cmap_HighResolution_683337601_683596801_4FGL_J1627.7+0251_daily_bin1713.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', comment='SUCCESS', energy_flux2='1.55e-05', dlogl='6.74e-01', photon_flux2='9.89e-08', job_status='DONE', time_completed='2022-09-16 19:48:28.430989', photon_index_error2='4.67', photon_index2='3.74', ts='0.11', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.38e-07', energy_flux_error2='2.09e-05', EG='1.31', time_epoch_completed='1663382908.43', return_code='0', job_id='169973', GAL2='1.02', EG2='1.20', return_code2='102', photon_flux_error2='8.58e-08', ts2='1.60', photon_index='2.19' WHERE bin_id='1713' AND source_name='4FGL J1627.7+0251' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 19:48:28 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0212>
Subject: Job 169973: <4FGL_J1627.7+0251_daily_bin1713> in cluster <slac> Done

Job <4FGL_J1627.7+0251_daily_bin1713> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Fri Sep 16 19:35:24 2022
Job was executed on host(s) <bullet0212>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 19:36:41 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 19:36:41 2022
Terminated at Fri Sep 16 19:48:29 2022
Results reported at Fri Sep 16 19:48:29 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1627.7+0251_daily_bin1713 246.942 2.8584 683337601 683596801 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 :                                   640.58 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             352.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   707 sec.
    Turnaround time :                            785 sec.

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

