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


Performing analysis on: 4FGL_J1627.7+0251_daily_bin816
RA = 246.942, Dec = 2.8584
tmin = 450835201, tmax = 451094401
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='517384', job_status='RUN', time_executed='2021-09-14 13:48:16.860009', time_epoch_executed='1631652496.86' WHERE source_name='4FGL J1627.7+0251' and cadence='daily' and bin_id='816'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/517384

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/517384/ft1_4FGL_J1627.7+0251_daily_bin816.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/517384/ft2_4FGL_J1627.7+0251_daily_bin816.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/517384/ft1_4FGL_J1627.7+0251_daily_bin816.fits outfile=/scratch/kocevski/517384/ft1_filteredMKT_4FGL_J1627.7+0251_daily_bin816.fits ra=246.942 dec=2.8584 rad=12.0 tmin=450835201.0 tmax=451094401.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.40
user 3.19
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/517384/ft2_4FGL_J1627.7+0251_daily_bin816.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/517384/ft1_filteredMKT_4FGL_J1627.7+0251_daily_bin816.fits evtable="EVENTS" outfile="/scratch/kocevski/517384/ft1_filtered_4FGL_J1627.7+0251_daily_bin816.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.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/517384/ft1_filtered_4FGL_J1627.7+0251_daily_bin816.fits" evtable="EVENTS" scfile=/scratch/kocevski/517384/ft2_4FGL_J1627.7+0251_daily_bin816.fits sctable="SC_DATA" outfile=/scratch/kocevski/517384/ltcube_450835201_451094401_4FGL_J1627.7+0251_daily_bin816.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/517384/ft2_4FGL_J1627.7+0251_daily_bin816.fits
.....................!
real 14.00
user 13.63
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/517384/ft1_filtered_4FGL_J1627.7+0251_daily_bin816.fits evtable="EVENTS" scfile=/scratch/kocevski/517384/ft2_4FGL_J1627.7+0251_daily_bin816.fits sctable="SC_DATA" expcube=/scratch/kocevski/517384/ltcube_450835201_451094401_4FGL_J1627.7+0251_daily_bin816.fits outfile=/scratch/kocevski/517384/expmap_450835201_451094401_4FGL_J1627.7+0251_daily_bin816.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/517384/ltcube_450835201_451094401_4FGL_J1627.7+0251_daily_bin816.fits
.....................!
real 191.32
user 186.35
sys 4.50

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/517384/ft1_filtered_4FGL_J1627.7+0251_daily_bin816.fits scfile=/scratch/kocevski/517384/ft2_4FGL_J1627.7+0251_daily_bin816.fits outfile=/scratch/kocevski/517384/cmap_450835201_451094401_4FGL_J1627.7+0251_daily_bin816.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/517384/ft1_filtered_4FGL_J1627.7+0251_daily_bin816.fits scfile=/scratch/kocevski/517384/ft2_4FGL_J1627.7+0251_daily_bin816.fits outfile=/scratch/kocevski/517384/cmap_HighResolution_450835201_451094401_4FGL_J1627.7+0251_daily_bin816.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.57
user 0.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/517384/ft1_filtered_4FGL_J1627.7+0251_daily_bin816.fits evtable="EVENTS" scfile=/scratch/kocevski/517384/ft2_4FGL_J1627.7+0251_daily_bin816.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/517384/Model_4FGL_J1627.7+0251_daily_bin816.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/517384/ft1_filtered_4FGL_J1627.7+0251_daily_bin816.fits.....................!
real 87.25
user 85.70
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7005       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .44727E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.8703       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.5545       1.0000         .10000E-03   10000.    
     6 'norm      '    43.850       1.0000         .10000E-03   10000.    
     7 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .29129E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.546       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.5605       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.0098       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.3344       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14008E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2350       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .96791       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9732.354     FROM MIGRAD    STATUS=CONVERGED    402 CALLS     1659 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7031        22.415       -.67143E-05   -.41091E-04
   2  Prefactor     .10000E-03    1.7636        .34191E-06** at limit **
   3  norm          1.8710        3.7081       -.63591E-06   -.11750E-02
   4  Prefactor     .10000E-03    31.164       -.65066E-06** at limit **
   5  norm          3.5544        1.7810       -.35428E-07    .14921E-03
   6  norm          43.847        19.528        .25254E-05   -.26663E-04
   7  norm          .10000E-03    50.625        .64698E-06** at limit **
   8  Prefactor     .10001E-03    371.34        .10731E-03** at limit **
   9  Prefactor     24.544        25.478        .27647E-05   -.90330E-05
  10  Prefactor     5.5600        8.6086       -.12291E-05   -.18247E-03
  11  Prefactor     .10000E-03    1.9725        .15818E-07** at limit **
  12  Prefactor     .10000E-03    7.7650       -.99846E-07** at limit **
  13  Prefactor     .10000E-03    17.753        .12021E-06** at limit **
  14  Prefactor     .10000E-03    1.5399       -.25208E-08** at limit **
  15  Prefactor     7.0084        5.3547        .97490E-06   -.17399E-03
  16  Prefactor     4.3333        7.0006       -.10003E-04   -.22741E-03
  17  Prefactor     .10000E-03    450.67       -.39412E-04** at limit **
  18  Normalizat    1.2352        .26424       -.42062E-06   -.19143E-03
  19  Prefactor     .96795        .74930E-01    .20318E-06   -.43721E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.70313
  Prefactor  = 0.000100001
  norm       = 1.87095
  Prefactor  = 0.0001
  norm       = 3.55441
  norm       = 43.8469
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 24.5441
  Prefactor  = 5.56003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.00845
  Prefactor  = 4.33327
  Prefactor  = 0.0001
  Normalizat = 1.23521
  Prefactor  = 0.967947
 **********
 **   18 **HESSE 
 **********

 FCN=   9732.354     FROM HESSE     STATUS=OK           268 CALLS     1927 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7031        22.234        .18561E-03   -1.5274    
   2  Prefactor     .10000E-03    10.959        .25049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.8710        3.6881        .25434E-03   -1.5434    
   4  Prefactor     .10000E-03    31.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.5544        1.7832        .90778E-04   -1.5331    
   6  norm          43.847        19.641        .60542E-04   -1.4383    
   7  norm          .10000E-03    50.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    370.04        .21402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     24.544        25.483        .80853E-04   -1.4717    
  10  Prefactor     5.5600        8.6025        .17038E-03   -1.5236    
  11  Prefactor     .10000E-03    1.9750        .13530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.7842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    17.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.5465        .11952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.0084        5.3466        .15152E-03   -1.5178    
  16  Prefactor     4.3333        7.0412        .19348E-03   -1.5292    
  17  Prefactor     .10000E-03    451.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2352        .29564        .44792E-03   -.85522    
  19  Prefactor     .96795        .84568E-01    .14899E-03   -.93806    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18844e-09
Minuit parameter uncertainties:
  1  20.4638
  2  0.000243687
  3  3.68859
  4  7.43703e-06
  5  1.78324
  6  19.6442
  7  2.39941e-06
  8  0.00285766
  9  25.494
  10  8.60445
  11  2.66259e-07
  12  1.60676e-06
  13  2.64474e-06
  14  9.4408e-07
  15  5.34698
  16  7.04253
  17  0.000278552
  18  0.296039
  19  0.0845798
Done.

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

Extracting fit parameters...

4FGL J1627.7+0251
   Spectrum: PowerLaw
271    Prefactor:  1.000e-04  2.858e-03  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.679e-01  8.458e-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.235e+00  2.960e-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: 1.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/517384/likelihoodResults_450835201_451094401_4FGL_J1627.7+0251_daily_bin816.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) = 9732.35382817
delta logL = -1.27251169033e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9732.18335625
delta logL = 0.170459193105

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7723       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2153       1.0000          .0000       10.000    
     3 'Normalizat'    1.1809       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97467       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=   9732.183     FROM MIGRAD    STATUS=FAILED        93 CALLS      362 TOTAL
                     EDM=   .65E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7737        987.64        .14383E-03    .42287E-03
   2  Index         3.2152        5.9234        .92547E-02    .26764E-03
   3  Normalizat    1.1809        .27969        .22847E-02    .64579E-04
   4  Prefactor     .97468        .80735E-01    .14853E-03    .13762E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9732.183     FROM SIMPLEX   STATUS=UNCHANGED     93 CALLS      455 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7737        987.64        .52245E-03    .42287E-03
   2  Index         3.2152        5.9234        .14598E-02    .26764E-03
   3  Normalizat    1.1809        .27969        .30309E-03    .64579E-04
   4  Prefactor     .97468        .80735E-01    .13465E-03    .13762E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9732.183     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      485 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7744        28.083        .57534E-05    .56119E-03
   2  Index         3.2152        1.4182        .37019E-03    .18132E-03
   3  Normalizat    1.1809        .29367        .91387E-04    .81956E-04
   4  Prefactor     .97468        .84581E-01    .59414E-05    .17987E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.77445
  Index      = 3.21516
  Normalizat = 1.18086
  Prefactor  = 0.974678
 **********
 **   18 **HESSE 
 **********

 FCN=   9732.183     FROM HESSE     STATUS=OK            23 CALLS      508 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.7744        27.604        .11507E-05   -1.5150    
   2  Index         3.2152        1.3919        .14808E-04   -.36502    
   3  Normalizat    1.1809        .29371        .18277E-04   -.87197    
   4  Prefactor     .97468        .84550E-01    .11883E-05   -.93578    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.41006e-10
Minuit parameter uncertainties:
  1  27.6496
  2  1.41335
  3  0.294124
  4  0.0845614
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/517384': 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) = 9732.18335623
delta logL = 0.170459215644

Extracting fit parameters...

4FGL J1627.7+0251
   Spectrum: PowerLaw
271    Prefactor:  7.774e+00  2.765e+01  1.000e-04  1.000e+04 ( 1.000e-14)
272        Index:  3.215e+00  1.413e+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:  9.747e-01  8.456e-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.181e+00  2.941e-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/517384/cmap_HighResolution_450835201_451094401_4FGL_J1627.7+0251_daily_bin816.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.58e-03', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2021-09-14 14:00:28.138663', job_id='517384', GAL2='0.97', fit_tolerance='1e-08', EG2='1.18', EG='1.24', time_epoch_completed='1631653228.14', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.70e-01', ts2='0.37', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='816' AND source_name='4FGL J1627.7+0251' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 14:00:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 517384: <4FGL_J1627.7+0251_daily_bin816> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1627.7+0251_daily_bin816 246.942 2.8584 450835201 451094401 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 :                                   728.44 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             300.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            890 sec.

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

