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


Performing analysis on: 4FGL_J1627.7+0251_daily_bin626
RA = 246.942, Dec = 2.8584
tmin = 401587201, tmax = 401846401
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='515925', job_status='RUN', time_executed='2021-09-14 13:42:37.654885', time_epoch_executed='1631652157.65' WHERE source_name='4FGL J1627.7+0251' and cadence='daily' and bin_id='626'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/515925

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/515925/ft1_4FGL_J1627.7+0251_daily_bin626.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/515925/ft2_4FGL_J1627.7+0251_daily_bin626.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/515925/ft1_4FGL_J1627.7+0251_daily_bin626.fits outfile=/scratch/kocevski/515925/ft1_filteredMKT_4FGL_J1627.7+0251_daily_bin626.fits ra=246.942 dec=2.8584 rad=12.0 tmin=401587201.0 tmax=401846401.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.23
user 3.97
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/515925/ft1_filtered_4FGL_J1627.7+0251_daily_bin626.fits" evtable="EVENTS" scfile=/scratch/kocevski/515925/ft2_4FGL_J1627.7+0251_daily_bin626.fits sctable="SC_DATA" outfile=/scratch/kocevski/515925/ltcube_401587201_401846401_4FGL_J1627.7+0251_daily_bin626.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/515925/ft2_4FGL_J1627.7+0251_daily_bin626.fits
.....................!
real 15.44
user 14.72
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/515925/ft1_filtered_4FGL_J1627.7+0251_daily_bin626.fits evtable="EVENTS" scfile=/scratch/kocevski/515925/ft2_4FGL_J1627.7+0251_daily_bin626.fits sctable="SC_DATA" expcube=/scratch/kocevski/515925/ltcube_401587201_401846401_4FGL_J1627.7+0251_daily_bin626.fits outfile=/scratch/kocevski/515925/expmap_401587201_401846401_4FGL_J1627.7+0251_daily_bin626.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/515925/ltcube_401587201_401846401_4FGL_J1627.7+0251_daily_bin626.fits
.....................!
real 192.64
user 186.60
sys 4.83

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/515925/ft1_filtered_4FGL_J1627.7+0251_daily_bin626.fits scfile=/scratch/kocevski/515925/ft2_4FGL_J1627.7+0251_daily_bin626.fits outfile=/scratch/kocevski/515925/cmap_401587201_401846401_4FGL_J1627.7+0251_daily_bin626.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.64
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/515925/ft1_filtered_4FGL_J1627.7+0251_daily_bin626.fits scfile=/scratch/kocevski/515925/ft2_4FGL_J1627.7+0251_daily_bin626.fits outfile=/scratch/kocevski/515925/cmap_HighResolution_401587201_401846401_4FGL_J1627.7+0251_daily_bin626.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.64
user 0.40
sys 0.20

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/515925/ft1_filtered_4FGL_J1627.7+0251_daily_bin626.fits evtable="EVENTS" scfile=/scratch/kocevski/515925/ft2_4FGL_J1627.7+0251_daily_bin626.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/515925/Model_4FGL_J1627.7+0251_daily_bin626.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/515925/ft1_filtered_4FGL_J1627.7+0251_daily_bin626.fits.....................!
real 84.95
user 82.74
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .15816E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    1.8837       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.427       1.0000         .10000E-03   10000.    
     5 'norm      '    1.6557       1.0000         .10000E-03   10000.    
     6 'norm      '    6.2931       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10459E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.2733       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .25150       1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.155       1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.510       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.0987       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.940       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    172.70       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .59275       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0250       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=   9386.949     FROM MIGRAD    STATUS=CONVERGED    399 CALLS     2262 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.6112       -.18434E-06** at limit **
   2  Prefactor     .11092E-03    2.5658       -.11696E-05** at limit **
   3  norm          1.8844        3.2106       -.70031E-06   -.78323E-03
   4  Prefactor     10.426        35.685       -.22656E-05   -.40557E-05
   5  norm          1.6556        1.1475        .14599E-07    .50325E-03
   6  norm          6.2904        13.221       -.32660E-05   -.84987E-04
   7  norm          .10000E-03    46.438       -.48680E-04** at limit **
   8  Prefactor     .10000E-03    73.474        .61345E-04** at limit **
   9  Prefactor     .10000E-03    40.212        .29152E-04** at limit **
  10  Prefactor     4.2803        10.079       -.21133E-05   -.23384E-03
  11  Prefactor     .19794        4.4634       -.11209E-05    .51532E-03
  12  Prefactor     26.149        31.410       -.19180E-05   -.42406E-04
  13  Prefactor     25.514        62.925        .75567E-05   -.13035E-04
  14  Prefactor     8.0999        7.4018        .99308E-06   -.13962E-03
  15  Prefactor     10.941        7.8394       -.43407E-05   -.10457E-03
  16  Prefactor     .10000E-03    4.6476        .23024E-07** at limit **
  17  Prefactor     172.66        225.78       -.29991E-04   -.53261E-05
  18  Normalizat    .59294        .30775        .60897E-05    .52917E-04
  19  Prefactor     1.0250        .85348E-01   -.66474E-07    .61984E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000110923
  norm       = 1.88443
  Prefactor  = 10.4255
  norm       = 1.6556
  norm       = 6.29039
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.28026
  Prefactor  = 0.197938
  Prefactor  = 26.1494
  Prefactor  = 25.5139
  Prefactor  = 8.09987
  Prefactor  = 10.9408
  Prefactor  = 0.0001
  Prefactor  = 172.658
  Normalizat = 0.592938
  Prefactor  = 1.02497
 **********
 **   18 **HESSE 
 **********

 FCN=   9386.949     FROM HESSE     STATUS=OK           286 CALLS     2548 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.6120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .11092E-03    2.5755        .48066E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.8844        3.1915        .21853E-03   -1.5433    
   4  Prefactor     10.426        35.663        .12408E-03   -1.5062    
   5  norm          1.6556        1.1611        .84226E-04   -1.5451    
   6  norm          6.2904        13.172        .16001E-03   -1.5206    
   7  norm          .10000E-03    46.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    73.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    40.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.2803        10.098        .19490E-03   -1.5294    
  11  Prefactor     .19794        74.206        .37758E-02   -1.5619    
  12  Prefactor     26.149        31.289        .78331E-04   -1.4685    
  13  Prefactor     25.514        62.672        .79312E-04   -1.4697    
  14  Prefactor     8.0999        7.3408        .14088E-03   -1.5139    
  15  Prefactor     10.941        7.8129        .12113E-03   -1.5046    
  16  Prefactor     .10000E-03    4.6601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     172.66        226.40        .15352E-03   -1.3072    
  18  Normalizat    .59294        .30621        .59939E-03   -1.0828    
  19  Prefactor     1.0250        .87965E-01    .13796E-03   -.91902    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12253e-08
Minuit parameter uncertainties:
  1  2.81493e-06
  2  0.0106083
  3  3.19174
  4  35.7361
  5  1.16109
  6  13.1777
  7  7.63914e-06
  8  0.000171749
  9  4.37619e-05
  10  10.102
  11  7.67265
  12  31.3087
  13  62.8343
  14  7.34158
  15  7.81358
  16  1.59405e-05
  17  227.553
  18  0.307085
  19  0.087977
Done.

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

Extracting fit parameters...

4FGL J1627.7+0251
   Spectrum: PowerLaw
271    Prefactor:  1.000e-04  1.717e-04  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.025e+00  8.798e-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:  5.929e-01  3.071e-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: 9.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/515925/likelihoodResults_401587201_401846401_4FGL_J1627.7+0251_daily_bin626.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) = 9386.94856731
delta logL = -6.49007906759e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9386.94850251
delta logL = -1.08266249299e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11383E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1416       1.0000          .0000       10.000    
     3 'Normalizat'    .59295       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0250       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=   9386.949     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      239 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7540.8        .90712E-02** at limit **
   2  Index         2.1456        7.8633        .50000       -.46302E-06
   3  Normalizat    .59294        .69995E-01    .13508        .34783E-03
   4  Prefactor     1.0250        .20900E-01    .31217E-01    .12107E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 2.14559
  Normalizat = 0.592939
  Prefactor  = 1.02497
 **********
 **   18 **HESSE 
 **********

 FCN=   9386.949     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      270 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9172.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1456        6.0466        .50000       -.60758    
   3  Normalizat    .59294        .13199        .59938E-03   -1.0828    
   4  Prefactor     1.0250        .39613E-01    .13796E-03   -.91902    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.95761e-09
Minuit parameter uncertainties:
  1  0.0153627
  2  56.1364
  3  0.132064
  4  0.0396137
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/515925': 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) = 9386.94850241
delta logL = -4.48198989034e-09

Extracting fit parameters...

4FGL J1627.7+0251
   Spectrum: PowerLaw
271    Prefactor:  1.000e-04  1.536e-02  1.000e-04  1.000e+04 ( 1.000e-14)
272        Index:  2.146e+00  5.614e+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.025e+00  3.961e-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:  5.929e-01  1.321e-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/515925/cmap_HighResolution_401587201_401846401_4FGL_J1627.7+0251_daily_bin626.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.11e-03', job_status='DONE', photon_flux_upper_limit='9.34e-08', time_completed='2021-09-14 13:55:11.466443', job_id='515925', GAL2='1.02', fit_tolerance='1e-08', EG2='0.59', EG='0.59', time_epoch_completed='1631652911.47', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='-4.48e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='626' AND source_name='4FGL J1627.7+0251' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 13:55:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 515925: <4FGL_J1627.7+0251_daily_bin626> in cluster <slac> Done

Job <4FGL_J1627.7+0251_daily_bin626> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 14 13:40:38 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 13:40:48 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:40:48 2021
Terminated at Tue Sep 14 13:55:12 2021
Results reported at Tue Sep 14 13:55:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1627.7+0251_daily_bin626 246.942 2.8584 401587201 401846401 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 :                                   748.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             344.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            874 sec.

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

